From cd8c8f5c70172a0fdc5b3e9f47f10d4834812e94 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 15 Feb 2024 23:59:15 +0000 Subject: [PATCH 1/2] docs: update proto comments PiperOrigin-RevId: 607453590 Source-Link: https://github.com/googleapis/googleapis/commit/f65b9f283e62410dedcc0f5f6d2647a0cf05a77c Source-Link: https://github.com/googleapis/googleapis-gen/commit/31d0d15acfe31204627f797fc7df6794a5fbe0c0 Copy-Tag: eyJwIjoiamF2YS1zZXJ2aWNlaGVhbHRoLy5Pd2xCb3QueWFtbCIsImgiOiIzMWQwZDE1YWNmZTMxMjA0NjI3Zjc5N2ZjN2RmNjc5NGE1ZmJlMGMwIn0= --- .../servicehealth/v1/ServiceHealthGrpc.java | 1005 ------- .../servicehealth/v1/EventResourcesProto.java | 439 ---- .../servicehealth/v1/EventServiceProto.java | 106 - .../servicehealth/v1/ServiceHealthClient.java | 2 +- .../v1/ServiceHealthSettings.java | 4 +- .../servicehealth/v1/gapic_metadata.json | 0 .../cloud/servicehealth/v1/package-info.java | 2 +- .../GrpcServiceHealthCallableFactory.java | 2 +- .../v1/stub/GrpcServiceHealthStub.java | 3 +- .../HttpJsonServiceHealthCallableFactory.java | 2 +- .../v1/stub/HttpJsonServiceHealthStub.java | 2 +- .../v1/stub/ServiceHealthStub.java | 2 +- .../v1/stub/ServiceHealthStubSettings.java | 4 +- .../reflect-config.json | 0 .../cloud/servicehealth/v1/MockLocations.java | 2 +- .../servicehealth/v1/MockLocationsImpl.java | 2 +- .../servicehealth/v1/MockServiceHealth.java | 2 +- .../v1/MockServiceHealthImpl.java | 2 +- .../v1/ServiceHealthClientHttpJsonTest.java | 2 +- .../v1/ServiceHealthClientTest.java | 2 +- .../servicehealth/v1/ServiceHealthGrpc.java | 765 ++++++ .../google/cloud/servicehealth/v1/Asset.java | 381 ++- .../servicehealth/v1/AssetOrBuilder.java | 36 +- .../google/cloud/servicehealth/v1/Event.java | 2327 ++++++----------- .../cloud/servicehealth/v1/EventImpact.java | 436 ++- .../v1/EventImpactOrBuilder.java | 34 +- .../cloud/servicehealth/v1/EventName.java | 2 +- .../servicehealth/v1/EventOrBuilder.java | 259 +- .../servicehealth/v1/EventResourcesProto.java | 381 +++ .../servicehealth/v1/EventServiceProto.java | 93 + .../cloud/servicehealth/v1/EventUpdate.java | 663 ++--- .../v1/EventUpdateOrBuilder.java | 71 +- .../cloud/servicehealth/v1/EventView.java | 86 +- .../servicehealth/v1/GetEventRequest.java | 347 +-- .../v1/GetEventRequestOrBuilder.java | 35 +- .../v1/GetOrganizationEventRequest.java | 364 ++- .../GetOrganizationEventRequestOrBuilder.java | 35 +- .../v1/GetOrganizationImpactRequest.java | 374 ++- ...GetOrganizationImpactRequestOrBuilder.java | 35 +- .../servicehealth/v1/ListEventsRequest.java | 606 ++--- .../v1/ListEventsRequestOrBuilder.java | 70 +- .../servicehealth/v1/ListEventsResponse.java | 683 ++--- .../v1/ListEventsResponseOrBuilder.java | 83 +- .../v1/ListOrganizationEventsRequest.java | 650 ++--- ...istOrganizationEventsRequestOrBuilder.java | 70 +- .../v1/ListOrganizationEventsResponse.java | 716 ++--- ...stOrganizationEventsResponseOrBuilder.java | 80 +- .../v1/ListOrganizationImpactsRequest.java | 553 ++-- ...stOrganizationImpactsRequestOrBuilder.java | 56 +- .../v1/ListOrganizationImpactsResponse.java | 732 ++---- ...tOrganizationImpactsResponseOrBuilder.java | 80 +- .../cloud/servicehealth/v1/Location.java | 312 +-- .../cloud/servicehealth/v1/LocationName.java | 2 +- .../servicehealth/v1/LocationOrBuilder.java | 27 +- .../servicehealth/v1/OrganizationEvent.java | 2300 ++++++---------- .../v1/OrganizationEventName.java | 2 +- .../v1/OrganizationEventOrBuilder.java | 265 +- .../v1/OrganizationEventView.java | 81 +- .../servicehealth/v1/OrganizationImpact.java | 777 ++---- .../v1/OrganizationImpactName.java | 2 +- .../v1/OrganizationImpactOrBuilder.java | 106 +- .../v1/OrganizationLocationName.java | 2 +- .../cloud/servicehealth/v1/Product.java | 312 +-- .../servicehealth/v1/ProductOrBuilder.java | 27 +- .../servicehealth/v1/event_resources.proto | 28 +- .../servicehealth/v1/event_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 2 +- .../SyncCreateSetCredentialsProvider1.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../servicehealth/getevent/AsyncGetEvent.java | 2 +- .../servicehealth/getevent/SyncGetEvent.java | 2 +- .../getevent/SyncGetEventEventname.java | 2 +- .../getevent/SyncGetEventString.java | 2 +- .../getlocation/AsyncGetLocation.java | 2 +- .../getlocation/SyncGetLocation.java | 2 +- .../AsyncGetOrganizationEvent.java | 2 +- .../SyncGetOrganizationEvent.java | 2 +- ...rganizationEventOrganizationeventname.java | 2 +- .../SyncGetOrganizationEventString.java | 2 +- .../AsyncGetOrganizationImpact.java | 2 +- .../SyncGetOrganizationImpact.java | 2 +- ...anizationImpactOrganizationimpactname.java | 2 +- .../SyncGetOrganizationImpactString.java | 2 +- .../listevents/AsyncListEvents.java | 2 +- .../listevents/AsyncListEventsPaged.java | 2 +- .../listevents/SyncListEvents.java | 2 +- .../SyncListEventsLocationname.java | 2 +- .../listevents/SyncListEventsString.java | 2 +- .../listlocations/AsyncListLocations.java | 2 +- .../AsyncListLocationsPaged.java | 2 +- .../listlocations/SyncListLocations.java | 2 +- .../AsyncListOrganizationEvents.java | 2 +- .../AsyncListOrganizationEventsPaged.java | 2 +- .../SyncListOrganizationEvents.java | 2 +- ...izationEventsOrganizationlocationname.java | 2 +- .../SyncListOrganizationEventsString.java | 2 +- .../AsyncListOrganizationImpacts.java | 2 +- .../AsyncListOrganizationImpactsPaged.java | 2 +- .../SyncListOrganizationImpacts.java | 2 +- ...zationImpactsOrganizationlocationname.java | 2 +- .../SyncListOrganizationImpactsString.java | 2 +- .../getevent/SyncGetEvent.java | 2 +- .../getevent/SyncGetEvent.java | 2 +- 103 files changed, 6204 insertions(+), 10801 deletions(-) delete mode 100644 java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java delete mode 100644 java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java delete mode 100644 java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/gapic_metadata.json (100%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/package-info.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthCallableFactory.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthStub.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthCallableFactory.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthStub.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStub.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json (100%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocations.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocationsImpl.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealth.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealthImpl.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientHttpJsonTest.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientTest.java (99%) create mode 100644 owl-bot-staging/java-servicehealth/v1/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java (70%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java (65%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java (68%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java (68%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java (70%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java create mode 100644 owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdate.java (70%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java (71%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java (67%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java (66%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java (56%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java (66%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java (61%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java (66%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java (64%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java (74%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java (76%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java (67%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java (63%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java (72%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java (78%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java (66%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java (64%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java (74%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java (80%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java (67%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java (68%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java (66%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java (50%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java (66%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java (64%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java (71%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java (65%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java (63%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java (66%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java (51%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto (96%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto (100%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java (99%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java (98%) rename {java-servicehealth => owl-bot-staging/java-servicehealth/v1}/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java (98%) diff --git a/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java b/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java deleted file mode 100644 index 0b9b6972bc34..000000000000 --- a/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java +++ /dev/null @@ -1,1005 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.servicehealth.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Request service health events relevant to your Google Cloud project.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicehealth/v1/event_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ServiceHealthGrpc { - - private ServiceHealthGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.servicehealth.v1.ServiceHealth"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.ListEventsRequest, - com.google.cloud.servicehealth.v1.ListEventsResponse> - getListEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEvents", - requestType = com.google.cloud.servicehealth.v1.ListEventsRequest.class, - responseType = com.google.cloud.servicehealth.v1.ListEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.ListEventsRequest, - com.google.cloud.servicehealth.v1.ListEventsResponse> - getListEventsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.ListEventsRequest, - com.google.cloud.servicehealth.v1.ListEventsResponse> - getListEventsMethod; - if ((getListEventsMethod = ServiceHealthGrpc.getListEventsMethod) == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getListEventsMethod = ServiceHealthGrpc.getListEventsMethod) == null) { - ServiceHealthGrpc.getListEventsMethod = - getListEventsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListEventsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListEventsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("ListEvents")) - .build(); - } - } - } - return getListEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.GetEventRequest, - com.google.cloud.servicehealth.v1.Event> - getGetEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEvent", - requestType = com.google.cloud.servicehealth.v1.GetEventRequest.class, - responseType = com.google.cloud.servicehealth.v1.Event.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.GetEventRequest, - com.google.cloud.servicehealth.v1.Event> - getGetEventMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.GetEventRequest, - com.google.cloud.servicehealth.v1.Event> - getGetEventMethod; - if ((getGetEventMethod = ServiceHealthGrpc.getGetEventMethod) == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getGetEventMethod = ServiceHealthGrpc.getGetEventMethod) == null) { - ServiceHealthGrpc.getGetEventMethod = - getGetEventMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.GetEventRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.Event.getDefaultInstance())) - .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("GetEvent")) - .build(); - } - } - } - return getGetEventMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> - getListOrganizationEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListOrganizationEvents", - requestType = com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, - responseType = com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> - getListOrganizationEventsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> - getListOrganizationEventsMethod; - if ((getListOrganizationEventsMethod = ServiceHealthGrpc.getListOrganizationEventsMethod) - == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getListOrganizationEventsMethod = ServiceHealthGrpc.getListOrganizationEventsMethod) - == null) { - ServiceHealthGrpc.getListOrganizationEventsMethod = - getListOrganizationEventsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListOrganizationEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ServiceHealthMethodDescriptorSupplier("ListOrganizationEvents")) - .build(); - } - } - } - return getListOrganizationEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, - com.google.cloud.servicehealth.v1.OrganizationEvent> - getGetOrganizationEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationEvent", - requestType = com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, - responseType = com.google.cloud.servicehealth.v1.OrganizationEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, - com.google.cloud.servicehealth.v1.OrganizationEvent> - getGetOrganizationEventMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, - com.google.cloud.servicehealth.v1.OrganizationEvent> - getGetOrganizationEventMethod; - if ((getGetOrganizationEventMethod = ServiceHealthGrpc.getGetOrganizationEventMethod) == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getGetOrganizationEventMethod = ServiceHealthGrpc.getGetOrganizationEventMethod) - == null) { - ServiceHealthGrpc.getGetOrganizationEventMethod = - getGetOrganizationEventMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetOrganizationEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.OrganizationEvent - .getDefaultInstance())) - .setSchemaDescriptor( - new ServiceHealthMethodDescriptorSupplier("GetOrganizationEvent")) - .build(); - } - } - } - return getGetOrganizationEventMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> - getListOrganizationImpactsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListOrganizationImpacts", - requestType = com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, - responseType = com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> - getListOrganizationImpactsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> - getListOrganizationImpactsMethod; - if ((getListOrganizationImpactsMethod = ServiceHealthGrpc.getListOrganizationImpactsMethod) - == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getListOrganizationImpactsMethod = ServiceHealthGrpc.getListOrganizationImpactsMethod) - == null) { - ServiceHealthGrpc.getListOrganizationImpactsMethod = - getListOrganizationImpactsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListOrganizationImpacts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ServiceHealthMethodDescriptorSupplier("ListOrganizationImpacts")) - .build(); - } - } - } - return getListOrganizationImpactsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, - com.google.cloud.servicehealth.v1.OrganizationImpact> - getGetOrganizationImpactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationImpact", - requestType = com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, - responseType = com.google.cloud.servicehealth.v1.OrganizationImpact.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, - com.google.cloud.servicehealth.v1.OrganizationImpact> - getGetOrganizationImpactMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, - com.google.cloud.servicehealth.v1.OrganizationImpact> - getGetOrganizationImpactMethod; - if ((getGetOrganizationImpactMethod = ServiceHealthGrpc.getGetOrganizationImpactMethod) - == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getGetOrganizationImpactMethod = ServiceHealthGrpc.getGetOrganizationImpactMethod) - == null) { - ServiceHealthGrpc.getGetOrganizationImpactMethod = - getGetOrganizationImpactMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetOrganizationImpact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.OrganizationImpact - .getDefaultInstance())) - .setSchemaDescriptor( - new ServiceHealthMethodDescriptorSupplier("GetOrganizationImpact")) - .build(); - } - } - } - return getGetOrganizationImpactMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ServiceHealthStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceHealthStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthStub(channel, callOptions); - } - }; - return ServiceHealthStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ServiceHealthBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceHealthBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthBlockingStub(channel, callOptions); - } - }; - return ServiceHealthBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ServiceHealthFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceHealthFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthFutureStub(channel, callOptions); - } - }; - return ServiceHealthFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Lists events under a given project and location.
-     * 
- */ - default void listEvents( - com.google.cloud.servicehealth.v1.ListEventsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves a resource containing information about an event.
-     * 
- */ - default void getEvent( - com.google.cloud.servicehealth.v1.GetEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEventMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists organization events under a given organization and location.
-     * 
- */ - default void listOrganizationEvents( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListOrganizationEventsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves a resource containing information about an event affecting an
-     * organization .
-     * 
- */ - default void getOrganizationEvent( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetOrganizationEventMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists assets impacted by organization events under a given organization and
-     * location.
-     * 
- */ - default void listOrganizationImpacts( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListOrganizationImpactsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves a resource containing information about impact to an asset under
-     * an organization affected by a service health event.
-     * 
- */ - default void getOrganizationImpact( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetOrganizationImpactMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ServiceHealth. - * - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public abstract static class ServiceHealthImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ServiceHealthGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ServiceHealth. - * - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public static final class ServiceHealthStub - extends io.grpc.stub.AbstractAsyncStub { - private ServiceHealthStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceHealthStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists events under a given project and location.
-     * 
- */ - public void listEvents( - com.google.cloud.servicehealth.v1.ListEventsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEventsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Retrieves a resource containing information about an event.
-     * 
- */ - public void getEvent( - com.google.cloud.servicehealth.v1.GetEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists organization events under a given organization and location.
-     * 
- */ - public void listOrganizationEvents( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListOrganizationEventsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves a resource containing information about an event affecting an
-     * organization .
-     * 
- */ - public void getOrganizationEvent( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationEventMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists assets impacted by organization events under a given organization and
-     * location.
-     * 
- */ - public void listOrganizationImpacts( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListOrganizationImpactsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves a resource containing information about impact to an asset under
-     * an organization affected by a service health event.
-     * 
- */ - public void getOrganizationImpact( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationImpactMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ServiceHealth. - * - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public static final class ServiceHealthBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ServiceHealthBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceHealthBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists events under a given project and location.
-     * 
- */ - public com.google.cloud.servicehealth.v1.ListEventsResponse listEvents( - com.google.cloud.servicehealth.v1.ListEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEventsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves a resource containing information about an event.
-     * 
- */ - public com.google.cloud.servicehealth.v1.Event getEvent( - com.google.cloud.servicehealth.v1.GetEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEventMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists organization events under a given organization and location.
-     * 
- */ - public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse listOrganizationEvents( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListOrganizationEventsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves a resource containing information about an event affecting an
-     * organization .
-     * 
- */ - public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvent( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationEventMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists assets impacted by organization events under a given organization and
-     * location.
-     * 
- */ - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse - listOrganizationImpacts( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListOrganizationImpactsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves a resource containing information about impact to an asset under
-     * an organization affected by a service health event.
-     * 
- */ - public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpact( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationImpactMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service ServiceHealth. - * - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public static final class ServiceHealthFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ServiceHealthFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceHealthFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists events under a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicehealth.v1.ListEventsResponse> - listEvents(com.google.cloud.servicehealth.v1.ListEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEventsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves a resource containing information about an event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicehealth.v1.Event> - getEvent(com.google.cloud.servicehealth.v1.GetEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEventMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists organization events under a given organization and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> - listOrganizationEvents( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListOrganizationEventsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves a resource containing information about an event affecting an
-     * organization .
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicehealth.v1.OrganizationEvent> - getOrganizationEvent( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationEventMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists assets impacted by organization events under a given organization and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> - listOrganizationImpacts( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListOrganizationImpactsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves a resource containing information about impact to an asset under
-     * an organization affected by a service health event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicehealth.v1.OrganizationImpact> - getOrganizationImpact( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationImpactMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_EVENTS = 0; - private static final int METHODID_GET_EVENT = 1; - private static final int METHODID_LIST_ORGANIZATION_EVENTS = 2; - private static final int METHODID_GET_ORGANIZATION_EVENT = 3; - private static final int METHODID_LIST_ORGANIZATION_IMPACTS = 4; - private static final int METHODID_GET_ORGANIZATION_IMPACT = 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_EVENTS: - serviceImpl.listEvents( - (com.google.cloud.servicehealth.v1.ListEventsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_EVENT: - serviceImpl.getEvent( - (com.google.cloud.servicehealth.v1.GetEventRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_ORGANIZATION_EVENTS: - serviceImpl.listOrganizationEvents( - (com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse>) - responseObserver); - break; - case METHODID_GET_ORGANIZATION_EVENT: - serviceImpl.getOrganizationEvent( - (com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_ORGANIZATION_IMPACTS: - serviceImpl.listOrganizationImpacts( - (com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse>) - responseObserver); - break; - case METHODID_GET_ORGANIZATION_IMPACT: - serviceImpl.getOrganizationImpact( - (com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) 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( - getListEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.ListEventsRequest, - com.google.cloud.servicehealth.v1.ListEventsResponse>( - service, METHODID_LIST_EVENTS))) - .addMethod( - getGetEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.GetEventRequest, - com.google.cloud.servicehealth.v1.Event>(service, METHODID_GET_EVENT))) - .addMethod( - getListOrganizationEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse>( - service, METHODID_LIST_ORGANIZATION_EVENTS))) - .addMethod( - getGetOrganizationEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, - com.google.cloud.servicehealth.v1.OrganizationEvent>( - service, METHODID_GET_ORGANIZATION_EVENT))) - .addMethod( - getListOrganizationImpactsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse>( - service, METHODID_LIST_ORGANIZATION_IMPACTS))) - .addMethod( - getGetOrganizationImpactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, - com.google.cloud.servicehealth.v1.OrganizationImpact>( - service, METHODID_GET_ORGANIZATION_IMPACT))) - .build(); - } - - private abstract static class ServiceHealthBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ServiceHealthBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.servicehealth.v1.EventServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ServiceHealth"); - } - } - - private static final class ServiceHealthFileDescriptorSupplier - extends ServiceHealthBaseDescriptorSupplier { - ServiceHealthFileDescriptorSupplier() {} - } - - private static final class ServiceHealthMethodDescriptorSupplier - extends ServiceHealthBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - ServiceHealthMethodDescriptorSupplier(java.lang.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 (ServiceHealthGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ServiceHealthFileDescriptorSupplier()) - .addMethod(getListEventsMethod()) - .addMethod(getGetEventMethod()) - .addMethod(getListOrganizationEventsMethod()) - .addMethod(getGetOrganizationEventMethod()) - .addMethod(getListOrganizationImpactsMethod()) - .addMethod(getGetOrganizationImpactMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java deleted file mode 100644 index d3fefb856423..000000000000 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java +++ /dev/null @@ -1,439 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/servicehealth/v1/event_resources.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.servicehealth.v1; - -public final class EventResourcesProto { - private EventResourcesProto() {} - - 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_cloud_servicehealth_v1_Event_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_Location_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_Product_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_Asset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/servicehealth/v1/event_re" - + "sources.proto\022\035google.cloud.servicehealt" - + "h.v1\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\032\037google/protobu" - + "f/timestamp.proto\"\223\013\n\005Event\022\024\n\004name\030\001 \001(" - + "\tB\006\340A\003\340A\010\022\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013descrip" - + "tion\030\003 \001(\tB\003\340A\003\022I\n\010category\030\004 \001(\01622.goog" - + "le.cloud.servicehealth.v1.Event.EventCat" - + "egoryB\003\340A\003\022U\n\021detailed_category\030\025 \001(\01625." - + "google.cloud.servicehealth.v1.Event.Deta" - + "iledCategoryB\003\340A\003\022>\n\005state\030\005 \001(\0162*.googl" - + "e.cloud.servicehealth.v1.Event.StateB\003\340A" - + "\003\022O\n\016detailed_state\030\023 \001(\01622.google.cloud" - + ".servicehealth.v1.Event.DetailedStateB\003\340" - + "A\003\022A\n\revent_impacts\030\024 \003(\0132*.google.cloud" - + ".servicehealth.v1.EventImpact\022F\n\trelevan" - + "ce\030\010 \001(\0162..google.cloud.servicehealth.v1" - + ".Event.RelevanceB\003\340A\003\022@\n\007updates\030\t \003(\0132*" - + ".google.cloud.servicehealth.v1.EventUpda" - + "teB\003\340A\003\022\031\n\014parent_event\030\n \001(\tB\003\340A\003\0224\n\013up" - + "date_time\030\014 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0223\n\nstart_time\030\r \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\016 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0229\n\020next" - + "_update_time\030\017 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\"=\n\rEventCategory\022\036\n\032EVENT_CA" - + "TEGORY_UNSPECIFIED\020\000\022\014\n\010INCIDENT\020\002\"d\n\020De" - + "tailedCategory\022!\n\035DETAILED_CATEGORY_UNSP" - + "ECIFIED\020\000\022\026\n\022CONFIRMED_INCIDENT\020\001\022\025\n\021EME" - + "RGING_INCIDENT\020\002\"6\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006CLOSED\020\002\"\213\001\n\rDet" - + "ailedState\022\036\n\032DETAILED_STATE_UNSPECIFIED" - + "\020\000\022\014\n\010EMERGING\020\001\022\r\n\tCONFIRMED\020\002\022\014\n\010RESOL" - + "VED\020\003\022\n\n\006MERGED\020\004\022\017\n\013AUTO_CLOSED\020\t\022\022\n\016FA" - + "LSE_POSITIVE\020\n\"w\n\tRelevance\022\031\n\025RELEVANCE" - + "_UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\002\022\020\n\014NOT_IMPAC" - + "TED\020\006\022\025\n\021PARTIALLY_RELATED\020\007\022\013\n\007RELATED\020" - + "\010\022\014\n\010IMPACTED\020\t:n\352Ak\n\"servicehealth.goog" - + "leapis.com/Event\0226projects/{project}/loc" - + "ations/{location}/events/{event}*\006events" - + "2\005event\"\317\n\n\021OrganizationEvent\022\024\n\004name\030\001 " - + "\001(\tB\006\340A\003\340A\010\022\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013descr" - + "iption\030\003 \001(\tB\003\340A\003\022U\n\010category\030\004 \001(\0162>.go" - + "ogle.cloud.servicehealth.v1.Organization" - + "Event.EventCategoryB\003\340A\003\022a\n\021detailed_cat" - + "egory\030\021 \001(\0162A.google.cloud.servicehealth" - + ".v1.OrganizationEvent.DetailedCategoryB\003" - + "\340A\003\022J\n\005state\030\005 \001(\01626.google.cloud.servic" - + "ehealth.v1.OrganizationEvent.StateB\003\340A\003\022" - + "[\n\016detailed_state\030\020 \001(\0162>.google.cloud.s" - + "ervicehealth.v1.OrganizationEvent.Detail" - + "edStateB\003\340A\003\022F\n\revent_impacts\030\017 \003(\0132*.go" - + "ogle.cloud.servicehealth.v1.EventImpactB" - + "\003\340A\003\022@\n\007updates\030\010 \003(\0132*.google.cloud.ser" - + "vicehealth.v1.EventUpdateB\003\340A\003\022\031\n\014parent" - + "_event\030\t \001(\tB\003\340A\003\0224\n\013update_time\030\013 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0223\n\nstart" - + "_time\030\014 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0221\n\010end_time\030\r \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\0229\n\020next_update_time\030\016 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\"=\n\rEv" - + "entCategory\022\036\n\032EVENT_CATEGORY_UNSPECIFIE" - + "D\020\000\022\014\n\010INCIDENT\020\002\"d\n\020DetailedCategory\022!\n" - + "\035DETAILED_CATEGORY_UNSPECIFIED\020\000\022\026\n\022CONF" - + "IRMED_INCIDENT\020\001\022\025\n\021EMERGING_INCIDENT\020\002\"" - + "6\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022\n\n\006CLOSED\020\002\"\213\001\n\rDetailedState\022\036\n\032DET" - + "AILED_STATE_UNSPECIFIED\020\000\022\014\n\010EMERGING\020\001\022" - + "\r\n\tCONFIRMED\020\002\022\014\n\010RESOLVED\020\003\022\n\n\006MERGED\020\004" - + "\022\017\n\013AUTO_CLOSED\020\t\022\022\n\016FALSE_POSITIVE\020\n:\251\001" - + "\352A\245\001\n.servicehealth.googleapis.com/Organ" - + "izationEvent\022Lorganizations/{organizatio" - + "n}/locations/{location}/organizationEven" - + "ts/{event}*\022organizationEvents2\021organiza" - + "tionEvent\"\240\001\n\013EventUpdate\0224\n\013update_time" - + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013description\030\003 \001(\t" - + "B\003\340A\003\022\024\n\007symptom\030\004 \001(\tB\003\340A\003\022\027\n\nworkaroun" - + "d\030\005 \001(\tB\003\340A\003\"!\n\010Location\022\025\n\rlocation_nam" - + "e\030\001 \001(\t\"\037\n\007Product\022\024\n\014product_name\030\001 \001(\t" - + "\"\201\001\n\013EventImpact\0227\n\007product\030\001 \001(\0132&.goog" - + "le.cloud.servicehealth.v1.Product\0229\n\010loc" - + "ation\030\002 \001(\0132\'.google.cloud.servicehealth" - + ".v1.Location\"\224\003\n\022OrganizationImpact\022\024\n\004n" - + "ame\030\001 \001(\tB\006\340A\003\340A\010\022:\n\006events\030\002 \003(\tB*\340A\003\372A" - + "$\n\"servicehealth.googleapis.com/Event\0228\n" - + "\005asset\030\003 \001(\0132$.google.cloud.servicehealt" - + "h.v1.AssetB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003:\273\001\352A\267\001\n/se" - + "rvicehealth.googleapis.com/OrganizationI" - + "mpact\022[organizations/{organization}/loca" - + "tions/{location}/organizationImpacts/{or" - + "ganization_impact}*\023organizationImpacts2" - + "\022organizationImpact\"9\n\005Asset\022\027\n\nasset_na" - + "me\030\001 \001(\tB\003\340A\003\022\027\n\nasset_type\030\002 \001(\tB\003\340A\003\"\322" - + "\001\n\021ListEventsRequest\022:\n\006parent\030\001 \001(\tB*\340A" - + "\002\372A$\022\"servicehealth.googleapis.com/Event" - + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" - + " \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022;\n\004view\030\006" - + " \001(\0162(.google.cloud.servicehealth.v1.Eve" - + "ntViewB\003\340A\001\"\207\001\n\022ListEventsResponse\0229\n\006ev" - + "ents\030\001 \003(\0132$.google.cloud.servicehealth." - + "v1.EventB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003" - + "\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"K\n\017GetEven" - + "tRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"serviceh" - + "ealth.googleapis.com/Event\"\366\001\n\035ListOrgan" - + "izationEventsRequest\022F\n\006parent\030\001 \001(\tB6\340A" - + "\002\372A0\022.servicehealth.googleapis.com/Organ" - + "izationEvent\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340" - + "A\001\022G\n\004view\030\006 \001(\01624.google.cloud.serviceh" - + "ealth.v1.OrganizationEventViewB\003\340A\001\"\254\001\n\036" - + "ListOrganizationEventsResponse\022R\n\023organi" - + "zation_events\030\001 \003(\01320.google.cloud.servi" - + "cehealth.v1.OrganizationEventB\003\340A\003\022\034\n\017ne" - + "xt_page_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030" - + "\003 \003(\tB\003\340A\003\"c\n\033GetOrganizationEventReques" - + "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.servicehealth.g" - + "oogleapis.com/OrganizationEvent\"\257\001\n\036List" - + "OrganizationImpactsRequest\022G\n\006parent\030\001 \001" - + "(\tB7\340A\002\372A1\022/servicehealth.googleapis.com" - + "/OrganizationImpact\022\026\n\tpage_size\030\002 \001(\005B\003" - + "\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004" - + " \001(\tB\003\340A\001\"\257\001\n\037ListOrganizationImpactsRes" - + "ponse\022T\n\024organization_impacts\030\001 \003(\01321.go" - + "ogle.cloud.servicehealth.v1.Organization" - + "ImpactB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" - + "\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"e\n\034GetOrgani" - + "zationImpactRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A" - + "1\n/servicehealth.googleapis.com/Organiza" - + "tionImpact*R\n\tEventView\022\032\n\026EVENT_VIEW_UN" - + "SPECIFIED\020\000\022\024\n\020EVENT_VIEW_BASIC\020\001\022\023\n\017EVE" - + "NT_VIEW_FULL\020\002*\205\001\n\025OrganizationEventView" - + "\022\'\n#ORGANIZATION_EVENT_VIEW_UNSPECIFIED\020" - + "\000\022!\n\035ORGANIZATION_EVENT_VIEW_BASIC\020\001\022 \n\034" - + "ORGANIZATION_EVENT_VIEW_FULL\020\002B\317\002\n!com.g" - + "oogle.cloud.servicehealth.v1B\023EventResou" - + "rcesProtoP\001ZGcloud.google.com/go/service" - + "health/apiv1/servicehealthpb;serviceheal" - + "thpb\252\002\035Google.Cloud.ServiceHealth.V1\312\002\035G" - + "oogle\\Cloud\\ServiceHealth\\V1\352\002 Google::C" - + "loud::ServiceHealth::V1\352Af\n1servicehealt" - + "h.googleapis.com/OrganizationLocation\0221o" - + "rganizations/{organization}/locations/{l" - + "ocation}b\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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_servicehealth_v1_Event_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_Event_descriptor, - new java.lang.String[] { - "Name", - "Title", - "Description", - "Category", - "DetailedCategory", - "State", - "DetailedState", - "EventImpacts", - "Relevance", - "Updates", - "ParentEvent", - "UpdateTime", - "StartTime", - "EndTime", - "NextUpdateTime", - }); - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor, - new java.lang.String[] { - "Name", - "Title", - "Description", - "Category", - "DetailedCategory", - "State", - "DetailedState", - "EventImpacts", - "Updates", - "ParentEvent", - "UpdateTime", - "StartTime", - "EndTime", - "NextUpdateTime", - }); - internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor, - new java.lang.String[] { - "UpdateTime", "Title", "Description", "Symptom", "Workaround", - }); - internal_static_google_cloud_servicehealth_v1_Location_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_Location_descriptor, - new java.lang.String[] { - "LocationName", - }); - internal_static_google_cloud_servicehealth_v1_Product_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_Product_descriptor, - new java.lang.String[] { - "ProductName", - }); - internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor, - new java.lang.String[] { - "Product", "Location", - }); - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor, - new java.lang.String[] { - "Name", "Events", "Asset", "UpdateTime", - }); - internal_static_google_cloud_servicehealth_v1_Asset_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_Asset_descriptor, - new java.lang.String[] { - "AssetName", "AssetType", - }); - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "View", - }); - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor, - new java.lang.String[] { - "Events", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "View", - }); - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor, - new java.lang.String[] { - "OrganizationEvents", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor, - new java.lang.String[] { - "OrganizationImpacts", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor, - new java.lang.String[] { - "Name", - }); - 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.resourceDefinition); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java deleted file mode 100644 index d23446d8c0a7..000000000000 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/servicehealth/v1/event_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.servicehealth.v1; - -public final class EventServiceProto { - private EventServiceProto() {} - - 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 = { - "\n1google/cloud/servicehealth/v1/event_se" - + "rvice.proto\022\035google.cloud.servicehealth." - + "v1\032\034google/api/annotations.proto\032\027google" - + "/api/client.proto\0323google/cloud/serviceh" - + "ealth/v1/event_resources.proto2\252\n\n\rServi" - + "ceHealth\022\256\001\n\nListEvents\0220.google.cloud.s" - + "ervicehealth.v1.ListEventsRequest\0321.goog" - + "le.cloud.servicehealth.v1.ListEventsResp" - + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=proje" - + "cts/*/locations/*}/events\022\233\001\n\010GetEvent\022." - + ".google.cloud.servicehealth.v1.GetEventR" - + "equest\032$.google.cloud.servicehealth.v1.E" - + "vent\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/" - + "*/locations/*/events/*}\022\343\001\n\026ListOrganiza" - + "tionEvents\022<.google.cloud.servicehealth." - + "v1.ListOrganizationEventsRequest\032=.googl" - + "e.cloud.servicehealth.v1.ListOrganizatio" - + "nEventsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{p" - + "arent=organizations/*/locations/*}/organ" - + "izationEvents\022\320\001\n\024GetOrganizationEvent\022:" - + ".google.cloud.servicehealth.v1.GetOrgani" - + "zationEventRequest\0320.google.cloud.servic" - + "ehealth.v1.OrganizationEvent\"J\332A\004name\202\323\344" - + "\223\002=\022;/v1/{name=organizations/*/locations" - + "/*/organizationEvents/*}\022\347\001\n\027ListOrganiz" - + "ationImpacts\022=.google.cloud.servicehealt" - + "h.v1.ListOrganizationImpactsRequest\032>.go" - + "ogle.cloud.servicehealth.v1.ListOrganiza" - + "tionImpactsResponse\"M\332A\006parent\202\323\344\223\002>\022\022 + * Request service health events relevant to your Google Cloud project. + * + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/servicehealth/v1/event_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ServiceHealthGrpc { + + private ServiceHealthGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.servicehealth.v1.ServiceHealth"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEvents", + requestType = com.google.cloud.servicehealth.v1.ListEventsRequest.class, + responseType = com.google.cloud.servicehealth.v1.ListEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListEventsMethod() { + io.grpc.MethodDescriptor getListEventsMethod; + if ((getListEventsMethod = ServiceHealthGrpc.getListEventsMethod) == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getListEventsMethod = ServiceHealthGrpc.getListEventsMethod) == null) { + ServiceHealthGrpc.getListEventsMethod = getListEventsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListEventsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListEventsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("ListEvents")) + .build(); + } + } + } + return getListEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEvent", + requestType = com.google.cloud.servicehealth.v1.GetEventRequest.class, + responseType = com.google.cloud.servicehealth.v1.Event.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEventMethod() { + io.grpc.MethodDescriptor getGetEventMethod; + if ((getGetEventMethod = ServiceHealthGrpc.getGetEventMethod) == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getGetEventMethod = ServiceHealthGrpc.getGetEventMethod) == null) { + ServiceHealthGrpc.getGetEventMethod = getGetEventMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.GetEventRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.Event.getDefaultInstance())) + .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("GetEvent")) + .build(); + } + } + } + return getGetEventMethod; + } + + private static volatile io.grpc.MethodDescriptor getListOrganizationEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrganizationEvents", + requestType = com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, + responseType = com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListOrganizationEventsMethod() { + io.grpc.MethodDescriptor getListOrganizationEventsMethod; + if ((getListOrganizationEventsMethod = ServiceHealthGrpc.getListOrganizationEventsMethod) == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getListOrganizationEventsMethod = ServiceHealthGrpc.getListOrganizationEventsMethod) == null) { + ServiceHealthGrpc.getListOrganizationEventsMethod = getListOrganizationEventsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrganizationEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("ListOrganizationEvents")) + .build(); + } + } + } + return getListOrganizationEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetOrganizationEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationEvent", + requestType = com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, + responseType = com.google.cloud.servicehealth.v1.OrganizationEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOrganizationEventMethod() { + io.grpc.MethodDescriptor getGetOrganizationEventMethod; + if ((getGetOrganizationEventMethod = ServiceHealthGrpc.getGetOrganizationEventMethod) == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getGetOrganizationEventMethod = ServiceHealthGrpc.getGetOrganizationEventMethod) == null) { + ServiceHealthGrpc.getGetOrganizationEventMethod = getGetOrganizationEventMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance())) + .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("GetOrganizationEvent")) + .build(); + } + } + } + return getGetOrganizationEventMethod; + } + + private static volatile io.grpc.MethodDescriptor getListOrganizationImpactsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrganizationImpacts", + requestType = com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, + responseType = com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListOrganizationImpactsMethod() { + io.grpc.MethodDescriptor getListOrganizationImpactsMethod; + if ((getListOrganizationImpactsMethod = ServiceHealthGrpc.getListOrganizationImpactsMethod) == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getListOrganizationImpactsMethod = ServiceHealthGrpc.getListOrganizationImpactsMethod) == null) { + ServiceHealthGrpc.getListOrganizationImpactsMethod = getListOrganizationImpactsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrganizationImpacts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("ListOrganizationImpacts")) + .build(); + } + } + } + return getListOrganizationImpactsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetOrganizationImpactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationImpact", + requestType = com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, + responseType = com.google.cloud.servicehealth.v1.OrganizationImpact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOrganizationImpactMethod() { + io.grpc.MethodDescriptor getGetOrganizationImpactMethod; + if ((getGetOrganizationImpactMethod = ServiceHealthGrpc.getGetOrganizationImpactMethod) == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getGetOrganizationImpactMethod = ServiceHealthGrpc.getGetOrganizationImpactMethod) == null) { + ServiceHealthGrpc.getGetOrganizationImpactMethod = getGetOrganizationImpactMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationImpact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance())) + .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("GetOrganizationImpact")) + .build(); + } + } + } + return getGetOrganizationImpactMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ServiceHealthStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceHealthStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthStub(channel, callOptions); + } + }; + return ServiceHealthStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ServiceHealthBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceHealthBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthBlockingStub(channel, callOptions); + } + }; + return ServiceHealthBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ServiceHealthFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceHealthFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthFutureStub(channel, callOptions); + } + }; + return ServiceHealthFutureStub.newStub(factory, channel); + } + + /** + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Lists events under a given project and location.
+     * 
+ */ + default void listEvents(com.google.cloud.servicehealth.v1.ListEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventsMethod(), responseObserver); + } + + /** + *
+     * Retrieves a resource containing information about an event.
+     * 
+ */ + default void getEvent(com.google.cloud.servicehealth.v1.GetEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEventMethod(), responseObserver); + } + + /** + *
+     * Lists organization events under a given organization and location.
+     * 
+ */ + default void listOrganizationEvents(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOrganizationEventsMethod(), responseObserver); + } + + /** + *
+     * Retrieves a resource containing information about an event affecting an
+     * organization .
+     * 
+ */ + default void getOrganizationEvent(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationEventMethod(), responseObserver); + } + + /** + *
+     * Lists assets impacted by organization events under a given organization and
+     * location.
+     * 
+ */ + default void listOrganizationImpacts(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOrganizationImpactsMethod(), responseObserver); + } + + /** + *
+     * Retrieves a resource containing information about impact to an asset under
+     * an organization affected by a service health event.
+     * 
+ */ + default void getOrganizationImpact(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationImpactMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ServiceHealth. + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public static abstract class ServiceHealthImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ServiceHealthGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ServiceHealth. + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public static final class ServiceHealthStub + extends io.grpc.stub.AbstractAsyncStub { + private ServiceHealthStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceHealthStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthStub(channel, callOptions); + } + + /** + *
+     * Lists events under a given project and location.
+     * 
+ */ + public void listEvents(com.google.cloud.servicehealth.v1.ListEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEventsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves a resource containing information about an event.
+     * 
+ */ + public void getEvent(com.google.cloud.servicehealth.v1.GetEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEventMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists organization events under a given organization and location.
+     * 
+ */ + public void listOrganizationEvents(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrganizationEventsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves a resource containing information about an event affecting an
+     * organization .
+     * 
+ */ + public void getOrganizationEvent(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationEventMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists assets impacted by organization events under a given organization and
+     * location.
+     * 
+ */ + public void listOrganizationImpacts(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrganizationImpactsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves a resource containing information about impact to an asset under
+     * an organization affected by a service health event.
+     * 
+ */ + public void getOrganizationImpact(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationImpactMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ServiceHealth. + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public static final class ServiceHealthBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ServiceHealthBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceHealthBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists events under a given project and location.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.ListEventsResponse listEvents(com.google.cloud.servicehealth.v1.ListEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEventsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves a resource containing information about an event.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.Event getEvent(com.google.cloud.servicehealth.v1.GetEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEventMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists organization events under a given organization and location.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse listOrganizationEvents(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrganizationEventsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves a resource containing information about an event affecting an
+     * organization .
+     * 
+ */ + public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvent(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationEventMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists assets impacted by organization events under a given organization and
+     * location.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse listOrganizationImpacts(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrganizationImpactsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves a resource containing information about impact to an asset under
+     * an organization affected by a service health event.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpact(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationImpactMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ServiceHealth. + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public static final class ServiceHealthFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ServiceHealthFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceHealthFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthFutureStub(channel, callOptions); + } + + /** + *
+     * Lists events under a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listEvents( + com.google.cloud.servicehealth.v1.ListEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEventsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves a resource containing information about an event.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEvent( + com.google.cloud.servicehealth.v1.GetEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEventMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists organization events under a given organization and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listOrganizationEvents( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrganizationEventsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves a resource containing information about an event affecting an
+     * organization .
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getOrganizationEvent( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationEventMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists assets impacted by organization events under a given organization and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listOrganizationImpacts( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrganizationImpactsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves a resource containing information about impact to an asset under
+     * an organization affected by a service health event.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getOrganizationImpact( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationImpactMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_EVENTS = 0; + private static final int METHODID_GET_EVENT = 1; + private static final int METHODID_LIST_ORGANIZATION_EVENTS = 2; + private static final int METHODID_GET_ORGANIZATION_EVENT = 3; + private static final int METHODID_LIST_ORGANIZATION_IMPACTS = 4; + private static final int METHODID_GET_ORGANIZATION_IMPACT = 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_EVENTS: + serviceImpl.listEvents((com.google.cloud.servicehealth.v1.ListEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EVENT: + serviceImpl.getEvent((com.google.cloud.servicehealth.v1.GetEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ORGANIZATION_EVENTS: + serviceImpl.listOrganizationEvents((com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ORGANIZATION_EVENT: + serviceImpl.getOrganizationEvent((com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ORGANIZATION_IMPACTS: + serviceImpl.listOrganizationImpacts((com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ORGANIZATION_IMPACT: + serviceImpl.getOrganizationImpact((com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) 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( + getListEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.ListEventsRequest, + com.google.cloud.servicehealth.v1.ListEventsResponse>( + service, METHODID_LIST_EVENTS))) + .addMethod( + getGetEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.GetEventRequest, + com.google.cloud.servicehealth.v1.Event>( + service, METHODID_GET_EVENT))) + .addMethod( + getListOrganizationEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse>( + service, METHODID_LIST_ORGANIZATION_EVENTS))) + .addMethod( + getGetOrganizationEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, + com.google.cloud.servicehealth.v1.OrganizationEvent>( + service, METHODID_GET_ORGANIZATION_EVENT))) + .addMethod( + getListOrganizationImpactsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse>( + service, METHODID_LIST_ORGANIZATION_IMPACTS))) + .addMethod( + getGetOrganizationImpactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, + com.google.cloud.servicehealth.v1.OrganizationImpact>( + service, METHODID_GET_ORGANIZATION_IMPACT))) + .build(); + } + + private static abstract class ServiceHealthBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ServiceHealthBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.servicehealth.v1.EventServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ServiceHealth"); + } + } + + private static final class ServiceHealthFileDescriptorSupplier + extends ServiceHealthBaseDescriptorSupplier { + ServiceHealthFileDescriptorSupplier() {} + } + + private static final class ServiceHealthMethodDescriptorSupplier + extends ServiceHealthBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ServiceHealthMethodDescriptorSupplier(java.lang.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 (ServiceHealthGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ServiceHealthFileDescriptorSupplier()) + .addMethod(getListEventsMethod()) + .addMethod(getGetEventMethod()) + .addMethod(getListOrganizationEventsMethod()) + .addMethod(getGetOrganizationEventMethod()) + .addMethod(getListOrganizationImpactsMethod()) + .addMethod(getGetOrganizationImpactMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java similarity index 70% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java index c215fef3101e..5038f388b812 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,24 +5,21 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * Represents the asset impacted by the events.
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Asset} */ -public final class Asset extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Asset extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.Asset) AssetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Asset.newBuilder() to construct. private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Asset() { assetName_ = ""; assetType_ = ""; @@ -45,32 +27,28 @@ private Asset() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Asset(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Asset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Asset.class, - com.google.cloud.servicehealth.v1.Asset.Builder.class); + com.google.cloud.servicehealth.v1.Asset.class, com.google.cloud.servicehealth.v1.Asset.Builder.class); } public static final int ASSET_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object assetName_ = ""; /** - * - * *
    * Output only. Full name of the resource as defined in
    * [Resource
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The assetName. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getAssetName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetName_ = s; return s; } } /** - * - * *
    * Output only. Full name of the resource as defined in
    * [Resource
@@ -103,15 +79,16 @@ public java.lang.String getAssetName() {
    * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for assetName. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetNameBytes() { + public com.google.protobuf.ByteString + getAssetNameBytes() { java.lang.Object ref = assetName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetName_ = b; return b; } else { @@ -120,19 +97,15 @@ public com.google.protobuf.ByteString getAssetNameBytes() { } public static final int ASSET_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object assetType_ = ""; /** - * - * *
    * Output only. Type of the asset. Example:
    * `"cloudresourcemanager.googleapis.com/Project"`
    * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The assetType. */ @java.lang.Override @@ -141,30 +114,30 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
    * Output only. Type of the asset. Example:
    * `"cloudresourcemanager.googleapis.com/Project"`
    * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,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(assetName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetName_); } @@ -215,15 +188,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.cloud.servicehealth.v1.Asset)) { return super.equals(obj); } com.google.cloud.servicehealth.v1.Asset other = (com.google.cloud.servicehealth.v1.Asset) obj; - if (!getAssetName().equals(other.getAssetName())) return false; - if (!getAssetType().equals(other.getAssetType())) return false; + if (!getAssetName() + .equals(other.getAssetName())) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,136 +219,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.Asset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.Asset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Asset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.Asset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 asset impacted by the events.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Asset} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.Asset) com.google.cloud.servicehealth.v1.AssetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Asset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Asset.class, - com.google.cloud.servicehealth.v1.Asset.Builder.class); + com.google.cloud.servicehealth.v1.Asset.class, com.google.cloud.servicehealth.v1.Asset.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.Asset.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(); @@ -384,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Asset_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_descriptor; } @java.lang.Override @@ -405,11 +376,8 @@ public com.google.cloud.servicehealth.v1.Asset build() { @java.lang.Override public com.google.cloud.servicehealth.v1.Asset buildPartial() { - com.google.cloud.servicehealth.v1.Asset result = - new com.google.cloud.servicehealth.v1.Asset(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.Asset result = new com.google.cloud.servicehealth.v1.Asset(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -428,39 +396,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset) { - return mergeFrom((com.google.cloud.servicehealth.v1.Asset) other); + return mergeFrom((com.google.cloud.servicehealth.v1.Asset)other); } else { super.mergeFrom(other); return this; @@ -505,25 +472,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - assetName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - assetType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + assetName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + assetType_ = 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) { @@ -533,13 +497,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object assetName_ = ""; /** - * - * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -547,13 +508,13 @@ public Builder mergeFrom(
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The assetName. */ public java.lang.String getAssetName() { java.lang.Object ref = assetName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetName_ = s; return s; @@ -562,8 +523,6 @@ public java.lang.String getAssetName() { } } /** - * - * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -571,14 +530,15 @@ public java.lang.String getAssetName() {
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for assetName. */ - public com.google.protobuf.ByteString getAssetNameBytes() { + public com.google.protobuf.ByteString + getAssetNameBytes() { java.lang.Object ref = assetName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetName_ = b; return b; } else { @@ -586,8 +546,6 @@ public com.google.protobuf.ByteString getAssetNameBytes() { } } /** - * - * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -595,22 +553,18 @@ public com.google.protobuf.ByteString getAssetNameBytes() {
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The assetName to set. * @return This builder for chaining. */ - public Builder setAssetName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAssetName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } assetName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -618,7 +572,6 @@ public Builder setAssetName(java.lang.String value) {
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearAssetName() { @@ -628,8 +581,6 @@ public Builder clearAssetName() { return this; } /** - * - * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -637,14 +588,12 @@ public Builder clearAssetName() {
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for assetName to set. * @return This builder for chaining. */ - public Builder setAssetNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAssetNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); assetName_ = value; bitField0_ |= 0x00000001; @@ -654,21 +603,19 @@ public Builder setAssetNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -677,22 +624,21 @@ public java.lang.String getAssetType() { } } /** - * - * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -700,37 +646,30 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAssetType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } assetType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearAssetType() { @@ -740,31 +679,27 @@ public Builder clearAssetType() { return this; } /** - * - * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); assetType_ = 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); } @@ -774,12 +709,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.Asset) private static final com.google.cloud.servicehealth.v1.Asset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.Asset(); } @@ -788,27 +723,27 @@ public static com.google.cloud.servicehealth.v1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -823,4 +758,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java similarity index 65% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java index 45bf05049823..894515b796eb 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface AssetOrBuilder - extends +public interface AssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.Asset) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Full name of the resource as defined in
    * [Resource
@@ -34,13 +16,10 @@ public interface AssetOrBuilder
    * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The assetName. */ java.lang.String getAssetName(); /** - * - * *
    * Output only. Full name of the resource as defined in
    * [Resource
@@ -48,35 +27,30 @@ public interface AssetOrBuilder
    * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for assetName. */ - com.google.protobuf.ByteString getAssetNameBytes(); + com.google.protobuf.ByteString + getAssetNameBytes(); /** - * - * *
    * Output only. Type of the asset. Example:
    * `"cloudresourcemanager.googleapis.com/Project"`
    * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
    * Output only. Type of the asset. Example:
    * `"cloudresourcemanager.googleapis.com/Project"`
    * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java similarity index 68% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java index f14e71b7550d..226e3293f7b6 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,8 +5,6 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * Represents service health events that may affect Google Cloud products.
  * Event resource is a read-only view and does not allow any modifications. All
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.servicehealth.v1.Event}
  */
-public final class Event extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Event extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.Event)
     EventOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Event.newBuilder() to construct.
   private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Event() {
     name_ = "";
     title_ = "";
@@ -56,28 +38,25 @@ private Event() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Event();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto
-        .internal_static_google_cloud_servicehealth_v1_Event_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto
-        .internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable
+    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.servicehealth.v1.Event.class,
-            com.google.cloud.servicehealth.v1.Event.Builder.class);
+            com.google.cloud.servicehealth.v1.Event.class, com.google.cloud.servicehealth.v1.Event.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The category of the event. This enum lists all possible categories of
    * event.
@@ -85,10 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.Event.EventCategory}
    */
-  public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum {
+  public enum EventCategory
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified category.
      * 
@@ -97,8 +75,6 @@ public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum { */ EVENT_CATEGORY_UNSPECIFIED(0), /** - * - * *
      * Event category for service outage or degradation.
      * 
@@ -110,8 +86,6 @@ public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified category.
      * 
@@ -120,8 +94,6 @@ public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVENT_CATEGORY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Event category for service outage or degradation.
      * 
@@ -130,6 +102,7 @@ public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INCIDENT_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -154,47 +127,48 @@ public static EventCategory valueOf(int value) { */ public static EventCategory forNumber(int value) { switch (value) { - case 0: - return EVENT_CATEGORY_UNSPECIFIED; - case 2: - return INCIDENT; - default: - return null; + case 0: return EVENT_CATEGORY_UNSPECIFIED; + case 2: return INCIDENT; + 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< + EventCategory> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventCategory findValueByNumber(int number) { + return EventCategory.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventCategory findValueByNumber(int number) { - return EventCategory.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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(0); } private static final EventCategory[] VALUES = values(); - public static EventCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventCategory 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; @@ -212,8 +186,6 @@ private EventCategory(int value) { } /** - * - * *
    * The detailed category of an event. Contains all possible states for all
    * event categories.
@@ -221,10 +193,9 @@ private EventCategory(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.Event.DetailedCategory}
    */
-  public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum {
+  public enum DetailedCategory
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified detailed category.
      * 
@@ -233,8 +204,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum */ DETAILED_CATEGORY_UNSPECIFIED(0), /** - * - * *
      * Indicates an event with category INCIDENT has a confirmed impact to at
      * least one Google Cloud product.
@@ -244,8 +213,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum
      */
     CONFIRMED_INCIDENT(1),
     /**
-     *
-     *
      * 
      * Indicates an event with category INCIDENT is under investigation to
      * determine if it has a confirmed impact on any Google Cloud products.
@@ -258,8 +225,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified detailed category.
      * 
@@ -268,8 +233,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum */ public static final int DETAILED_CATEGORY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates an event with category INCIDENT has a confirmed impact to at
      * least one Google Cloud product.
@@ -279,8 +242,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int CONFIRMED_INCIDENT_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates an event with category INCIDENT is under investigation to
      * determine if it has a confirmed impact on any Google Cloud products.
@@ -290,6 +251,7 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int EMERGING_INCIDENT_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -314,42 +276,39 @@ public static DetailedCategory valueOf(int value) {
      */
     public static DetailedCategory forNumber(int value) {
       switch (value) {
-        case 0:
-          return DETAILED_CATEGORY_UNSPECIFIED;
-        case 1:
-          return CONFIRMED_INCIDENT;
-        case 2:
-          return EMERGING_INCIDENT;
-        default:
-          return null;
+        case 0: return DETAILED_CATEGORY_UNSPECIFIED;
+        case 1: return CONFIRMED_INCIDENT;
+        case 2: return EMERGING_INCIDENT;
+        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<
+        DetailedCategory> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public DetailedCategory findValueByNumber(int number) {
+              return DetailedCategory.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public DetailedCategory findValueByNumber(int number) {
-                return DetailedCategory.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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -358,7 +317,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static DetailedCategory 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;
@@ -376,18 +336,15 @@ private DetailedCategory(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The state of the event. This enum lists all possible states of event.
    * 
* * Protobuf enum {@code google.cloud.servicehealth.v1.Event.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.
      * 
@@ -396,8 +353,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Event is actively affecting a Google Cloud product and will continue to
      * receive updates.
@@ -407,8 +362,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ACTIVE(1),
     /**
-     *
-     *
      * 
      * Event is no longer affecting the Google Cloud product or has been merged
      * with another event.
@@ -421,8 +374,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified state.
      * 
@@ -431,8 +382,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Event is actively affecting a Google Cloud product and will continue to
      * receive updates.
@@ -442,8 +391,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ACTIVE_VALUE = 1;
     /**
-     *
-     *
      * 
      * Event is no longer affecting the Google Cloud product or has been merged
      * with another event.
@@ -453,6 +400,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CLOSED_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -477,49 +425,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return ACTIVE;
-        case 2:
-          return CLOSED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return ACTIVE;
+        case 2: return CLOSED;
+        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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(2);
     }
 
     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;
@@ -537,8 +485,6 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The detailed state of the incident. This enum lists all possible detailed
    * states of an incident.
@@ -546,10 +492,9 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.Event.DetailedState}
    */
-  public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
+  public enum DetailedState
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified detail state.
      * 
@@ -558,8 +503,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum { */ DETAILED_STATE_UNSPECIFIED(0), /** - * - * *
      * Google engineers are actively investigating the event to determine the
      * impact.
@@ -569,8 +512,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EMERGING(1),
     /**
-     *
-     *
      * 
      * The incident is confirmed and impacting at least one Google Cloud
      * product. Ongoing status updates will be provided until it is resolved.
@@ -580,8 +521,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     CONFIRMED(2),
     /**
-     *
-     *
      * 
      * The incident is no longer affecting any Google Cloud product, and there
      * will be no further updates.
@@ -591,8 +530,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESOLVED(3),
     /**
-     *
-     *
      * 
      * The incident was merged into a parent incident. All further updates will
      * be published to the parent only. The `parent_event` field contains the
@@ -603,22 +540,24 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     MERGED(4),
     /**
+     * 
+     * The incident was automatically closed because of the following reasons:
      *
+     *  * The impact of the incident could not be confirmed.
+     *  * The incident was intermittent or resolved itself.
      *
-     * 
-     * The incident was automatically closed because the issues couldn’t be
-     * confirmed or is no longer impacting Google Cloud Products and/or
-     * Locations.
+     *  The incident does not have a resolution because no action or
+     *  investigation happened. If it is intermittent, the incident may reopen.
      * 
* * AUTO_CLOSED = 9; */ AUTO_CLOSED(9), /** - * - * *
-     * The incident was verified as non-impactful. No further action required.
+     * Upon investigation, Google engineers concluded that the incident is not
+     * affecting a Google Cloud product. This state can change if the incident
+     * is reviewed again.
      * 
* * FALSE_POSITIVE = 10; @@ -628,8 +567,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified detail state.
      * 
@@ -638,8 +575,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DETAILED_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Google engineers are actively investigating the event to determine the
      * impact.
@@ -649,8 +584,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EMERGING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The incident is confirmed and impacting at least one Google Cloud
      * product. Ongoing status updates will be provided until it is resolved.
@@ -660,8 +593,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CONFIRMED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The incident is no longer affecting any Google Cloud product, and there
      * will be no further updates.
@@ -671,8 +602,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESOLVED_VALUE = 3;
     /**
-     *
-     *
      * 
      * The incident was merged into a parent incident. All further updates will
      * be published to the parent only. The `parent_event` field contains the
@@ -683,28 +612,31 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MERGED_VALUE = 4;
     /**
+     * 
+     * The incident was automatically closed because of the following reasons:
      *
+     *  * The impact of the incident could not be confirmed.
+     *  * The incident was intermittent or resolved itself.
      *
-     * 
-     * The incident was automatically closed because the issues couldn’t be
-     * confirmed or is no longer impacting Google Cloud Products and/or
-     * Locations.
+     *  The incident does not have a resolution because no action or
+     *  investigation happened. If it is intermittent, the incident may reopen.
      * 
* * AUTO_CLOSED = 9; */ public static final int AUTO_CLOSED_VALUE = 9; /** - * - * *
-     * The incident was verified as non-impactful. No further action required.
+     * Upon investigation, Google engineers concluded that the incident is not
+     * affecting a Google Cloud product. This state can change if the incident
+     * is reviewed again.
      * 
* * FALSE_POSITIVE = 10; */ public static final int FALSE_POSITIVE_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -729,57 +661,53 @@ public static DetailedState valueOf(int value) { */ public static DetailedState forNumber(int value) { switch (value) { - case 0: - return DETAILED_STATE_UNSPECIFIED; - case 1: - return EMERGING; - case 2: - return CONFIRMED; - case 3: - return RESOLVED; - case 4: - return MERGED; - case 9: - return AUTO_CLOSED; - case 10: - return FALSE_POSITIVE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return DETAILED_STATE_UNSPECIFIED; + case 1: return EMERGING; + case 2: return CONFIRMED; + case 3: return RESOLVED; + case 4: return MERGED; + case 9: return AUTO_CLOSED; + case 10: return FALSE_POSITIVE; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DetailedState findValueByNumber(int number) { - return DetailedState.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DetailedState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DetailedState findValueByNumber(int number) { + return DetailedState.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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(3); } private static final DetailedState[] VALUES = values(); - public static DetailedState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DetailedState 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; @@ -797,8 +725,6 @@ private DetailedState(int value) { } /** - * - * *
    * Communicates why a given incident is deemed relevant in the context of a
    * given project. This enum lists all possible detailed states of relevance.
@@ -806,10 +732,9 @@ private DetailedState(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.Event.Relevance}
    */
-  public enum Relevance implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Relevance
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified relevance.
      * 
@@ -818,8 +743,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum { */ RELEVANCE_UNSPECIFIED(0), /** - * - * *
      * The relevance of the incident to the project is unknown.
      * 
@@ -828,8 +751,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(2), /** - * - * *
      * The incident does not impact the project.
      * 
@@ -838,8 +759,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum { */ NOT_IMPACTED(6), /** - * - * *
      * The incident is associated with a Google Cloud product your project uses,
      * but the incident may not be impacting your project. For example, the
@@ -851,8 +770,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum {
      */
     PARTIALLY_RELATED(7),
     /**
-     *
-     *
      * 
      * The incident has a direct connection with your project and impacts a
      * Google Cloud product in a location your project uses.
@@ -862,8 +779,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum {
      */
     RELATED(8),
     /**
-     *
-     *
      * 
      * The incident is verified to be impacting your project.
      * 
@@ -875,8 +790,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified relevance.
      * 
@@ -885,8 +798,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RELEVANCE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The relevance of the incident to the project is unknown.
      * 
@@ -895,8 +806,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 2; /** - * - * *
      * The incident does not impact the project.
      * 
@@ -905,8 +814,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_IMPACTED_VALUE = 6; /** - * - * *
      * The incident is associated with a Google Cloud product your project uses,
      * but the incident may not be impacting your project. For example, the
@@ -918,8 +825,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PARTIALLY_RELATED_VALUE = 7;
     /**
-     *
-     *
      * 
      * The incident has a direct connection with your project and impacts a
      * Google Cloud product in a location your project uses.
@@ -929,8 +834,6 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RELATED_VALUE = 8;
     /**
-     *
-     *
      * 
      * The incident is verified to be impacting your project.
      * 
@@ -939,6 +842,7 @@ public enum Relevance implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPACTED_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -963,55 +867,52 @@ public static Relevance valueOf(int value) { */ public static Relevance forNumber(int value) { switch (value) { - case 0: - return RELEVANCE_UNSPECIFIED; - case 2: - return UNKNOWN; - case 6: - return NOT_IMPACTED; - case 7: - return PARTIALLY_RELATED; - case 8: - return RELATED; - case 9: - return IMPACTED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return RELEVANCE_UNSPECIFIED; + case 2: return UNKNOWN; + case 6: return NOT_IMPACTED; + case 7: return PARTIALLY_RELATED; + case 8: return RELATED; + case 9: return IMPACTED; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Relevance findValueByNumber(int number) { - return Relevance.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Relevance> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Relevance findValueByNumber(int number) { + return Relevance.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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(4); } private static final Relevance[] VALUES = values(); - public static Relevance valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Relevance 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; @@ -1030,22 +931,16 @@ private Relevance(int value) { private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including project and location using the form
    * `projects/{project_id}/locations/{location}/events/{event_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return The name. */ @java.lang.Override @@ -1054,33 +949,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; } } /** - * - * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including project and location using the form
    * `projects/{project_id}/locations/{location}/events/{event_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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 { @@ -1089,18 +982,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TITLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** - * - * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The title. */ @java.lang.Override @@ -1109,29 +998,29 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** - * - * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -1140,18 +1029,14 @@ public com.google.protobuf.ByteString getTitleBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ @java.lang.Override @@ -1160,29 +1045,29 @@ 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; } } /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1193,172 +1078,111 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CATEGORY_FIELD_NUMBER = 4; private int category_ = 0; /** - * - * *
    * Output only. The category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for category. */ - @java.lang.Override - public int getCategoryValue() { + @java.lang.Override public int getCategoryValue() { return category_; } /** - * - * *
    * Output only. The category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The category. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.Event.EventCategory getCategory() { - com.google.cloud.servicehealth.v1.Event.EventCategory result = - com.google.cloud.servicehealth.v1.Event.EventCategory.forNumber(category_); - return result == null - ? com.google.cloud.servicehealth.v1.Event.EventCategory.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.servicehealth.v1.Event.EventCategory getCategory() { + com.google.cloud.servicehealth.v1.Event.EventCategory result = com.google.cloud.servicehealth.v1.Event.EventCategory.forNumber(category_); + return result == null ? com.google.cloud.servicehealth.v1.Event.EventCategory.UNRECOGNIZED : result; } public static final int DETAILED_CATEGORY_FIELD_NUMBER = 21; private int detailedCategory_ = 0; /** - * - * *
    * Output only. The detailed category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedCategory. */ - @java.lang.Override - public int getDetailedCategoryValue() { + @java.lang.Override public int getDetailedCategoryValue() { return detailedCategory_; } /** - * - * *
    * Output only. The detailed category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedCategory. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.Event.DetailedCategory getDetailedCategory() { - com.google.cloud.servicehealth.v1.Event.DetailedCategory result = - com.google.cloud.servicehealth.v1.Event.DetailedCategory.forNumber(detailedCategory_); - return result == null - ? com.google.cloud.servicehealth.v1.Event.DetailedCategory.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.servicehealth.v1.Event.DetailedCategory getDetailedCategory() { + com.google.cloud.servicehealth.v1.Event.DetailedCategory result = com.google.cloud.servicehealth.v1.Event.DetailedCategory.forNumber(detailedCategory_); + return result == null ? com.google.cloud.servicehealth.v1.Event.DetailedCategory.UNRECOGNIZED : result; } public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** - * - * *
    * Output only. The current state of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current state of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.Event.State getState() { - com.google.cloud.servicehealth.v1.Event.State result = - com.google.cloud.servicehealth.v1.Event.State.forNumber(state_); + @java.lang.Override public com.google.cloud.servicehealth.v1.Event.State getState() { + com.google.cloud.servicehealth.v1.Event.State result = com.google.cloud.servicehealth.v1.Event.State.forNumber(state_); return result == null ? com.google.cloud.servicehealth.v1.Event.State.UNRECOGNIZED : result; } public static final int DETAILED_STATE_FIELD_NUMBER = 19; private int detailedState_ = 0; /** - * - * *
    * Output only. The current detailed state of the incident.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedState. */ - @java.lang.Override - public int getDetailedStateValue() { + @java.lang.Override public int getDetailedStateValue() { return detailedState_; } /** - * - * *
    * Output only. The current detailed state of the incident.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedState. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.Event.DetailedState getDetailedState() { - com.google.cloud.servicehealth.v1.Event.DetailedState result = - com.google.cloud.servicehealth.v1.Event.DetailedState.forNumber(detailedState_); - return result == null - ? com.google.cloud.servicehealth.v1.Event.DetailedState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.servicehealth.v1.Event.DetailedState getDetailedState() { + com.google.cloud.servicehealth.v1.Event.DetailedState result = com.google.cloud.servicehealth.v1.Event.DetailedState.forNumber(detailedState_); + return result == null ? com.google.cloud.servicehealth.v1.Event.DetailedState.UNRECOGNIZED : result; } public static final int EVENT_IMPACTS_FIELD_NUMBER = 20; - @SuppressWarnings("serial") private java.util.List eventImpacts_; /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1370,8 +1194,6 @@ public java.util.List getEventImp return eventImpacts_; } /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1379,13 +1201,11 @@ public java.util.List getEventImp * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ @java.lang.Override - public java.util.List + public java.util.List getEventImpactsOrBuilderList() { return eventImpacts_; } /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1397,8 +1217,6 @@ public int getEventImpactsCount() { return eventImpacts_.size(); } /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1410,8 +1228,6 @@ public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) return eventImpacts_.get(index); } /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1427,132 +1243,96 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB public static final int RELEVANCE_FIELD_NUMBER = 8; private int relevance_ = 0; /** - * - * *
    * Output only. Communicates why a given event is deemed relevant in the
    * context of a given project.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override - public int getRelevanceValue() { + @java.lang.Override public int getRelevanceValue() { return relevance_; } /** - * - * *
    * Output only. Communicates why a given event is deemed relevant in the
    * context of a given project.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The relevance. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.Event.Relevance getRelevance() { - com.google.cloud.servicehealth.v1.Event.Relevance result = - com.google.cloud.servicehealth.v1.Event.Relevance.forNumber(relevance_); + @java.lang.Override public com.google.cloud.servicehealth.v1.Event.Relevance getRelevance() { + com.google.cloud.servicehealth.v1.Event.Relevance result = com.google.cloud.servicehealth.v1.Event.Relevance.forNumber(relevance_); return result == null ? com.google.cloud.servicehealth.v1.Event.Relevance.UNRECOGNIZED : result; } public static final int UPDATES_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private java.util.List updates_; /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getUpdatesList() { return updates_; } /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getUpdatesOrBuilderList() { return updates_; } /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getUpdatesCount() { return updates_.size(); } /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { return updates_.get(index); } /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( + int index) { return updates_.get(index); } public static final int PARENT_EVENT_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object parentEvent_ = ""; /** - * - * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -1560,7 +1340,6 @@ public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilde
    * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parentEvent. */ @java.lang.Override @@ -1569,15 +1348,14 @@ public java.lang.String getParentEvent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentEvent_ = s; return s; } } /** - * - * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -1585,15 +1363,16 @@ public java.lang.String getParentEvent() {
    * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parentEvent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentEventBytes() { + public com.google.protobuf.ByteString + getParentEventBytes() { java.lang.Object ref = parentEvent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentEvent_ = b; return b; } else { @@ -1604,15 +1383,11 @@ public com.google.protobuf.ByteString getParentEventBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1620,15 +1395,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1636,14 +1407,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1653,15 +1421,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -1669,15 +1433,11 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -1685,14 +1445,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -1702,15 +1459,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -1718,15 +1471,11 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -1734,14 +1483,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1751,16 +1497,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int NEXT_UPDATE_TIME_FIELD_NUMBER = 15; private com.google.protobuf.Timestamp nextUpdateTime_; /** - * - * *
    * Output only. The time when the next update can be expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the nextUpdateTime field is set. */ @java.lang.Override @@ -1768,44 +1509,30 @@ public boolean hasNextUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Output only. The time when the next update can be expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The nextUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextUpdateTime() { - return nextUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextUpdateTime_; + return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; } /** - * - * *
    * Output only. The time when the next update can be expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder() { - return nextUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextUpdateTime_; + return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1817,7 +1544,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_); } @@ -1827,16 +1555,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } - if (category_ - != com.google.cloud.servicehealth.v1.Event.EventCategory.EVENT_CATEGORY_UNSPECIFIED - .getNumber()) { + if (category_ != com.google.cloud.servicehealth.v1.Event.EventCategory.EVENT_CATEGORY_UNSPECIFIED.getNumber()) { output.writeEnum(4, category_); } if (state_ != com.google.cloud.servicehealth.v1.Event.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } - if (relevance_ - != com.google.cloud.servicehealth.v1.Event.Relevance.RELEVANCE_UNSPECIFIED.getNumber()) { + if (relevance_ != com.google.cloud.servicehealth.v1.Event.Relevance.RELEVANCE_UNSPECIFIED.getNumber()) { output.writeEnum(8, relevance_); } for (int i = 0; i < updates_.size(); i++) { @@ -1857,17 +1582,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(15, getNextUpdateTime()); } - if (detailedState_ - != com.google.cloud.servicehealth.v1.Event.DetailedState.DETAILED_STATE_UNSPECIFIED - .getNumber()) { + if (detailedState_ != com.google.cloud.servicehealth.v1.Event.DetailedState.DETAILED_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(19, detailedState_); } for (int i = 0; i < eventImpacts_.size(); i++) { output.writeMessage(20, eventImpacts_.get(i)); } - if (detailedCategory_ - != com.google.cloud.servicehealth.v1.Event.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED - .getNumber()) { + if (detailedCategory_ != com.google.cloud.servicehealth.v1.Event.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED.getNumber()) { output.writeEnum(21, detailedCategory_); } getUnknownFields().writeTo(output); @@ -1888,48 +1609,52 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } - if (category_ - != com.google.cloud.servicehealth.v1.Event.EventCategory.EVENT_CATEGORY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, category_); + if (category_ != com.google.cloud.servicehealth.v1.Event.EventCategory.EVENT_CATEGORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, category_); } if (state_ != com.google.cloud.servicehealth.v1.Event.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } - if (relevance_ - != com.google.cloud.servicehealth.v1.Event.Relevance.RELEVANCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, relevance_); + if (relevance_ != com.google.cloud.servicehealth.v1.Event.Relevance.RELEVANCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, relevance_); } for (int i = 0; i < updates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, updates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, updates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEvent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, parentEvent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getUpdateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getStartTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getEndTime()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getNextUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getNextUpdateTime()); } - if (detailedState_ - != com.google.cloud.servicehealth.v1.Event.DetailedState.DETAILED_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, detailedState_); + if (detailedState_ != com.google.cloud.servicehealth.v1.Event.DetailedState.DETAILED_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(19, detailedState_); } for (int i = 0; i < eventImpacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, eventImpacts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, eventImpacts_.get(i)); } - if (detailedCategory_ - != com.google.cloud.servicehealth.v1.Event.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, detailedCategory_); + if (detailedCategory_ != com.google.cloud.servicehealth.v1.Event.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(21, detailedCategory_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1939,39 +1664,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.cloud.servicehealth.v1.Event)) { return super.equals(obj); } com.google.cloud.servicehealth.v1.Event other = (com.google.cloud.servicehealth.v1.Event) obj; - if (!getName().equals(other.getName())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (category_ != other.category_) return false; if (detailedCategory_ != other.detailedCategory_) return false; if (state_ != other.state_) return false; if (detailedState_ != other.detailedState_) return false; - if (!getEventImpactsList().equals(other.getEventImpactsList())) return false; + if (!getEventImpactsList() + .equals(other.getEventImpactsList())) return false; if (relevance_ != other.relevance_) return false; - if (!getUpdatesList().equals(other.getUpdatesList())) return false; - if (!getParentEvent().equals(other.getParentEvent())) return false; + if (!getUpdatesList() + .equals(other.getUpdatesList())) return false; + if (!getParentEvent() + .equals(other.getParentEvent())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) 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 (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (hasNextUpdateTime() != other.hasNextUpdateTime()) return false; if (hasNextUpdateTime()) { - if (!getNextUpdateTime().equals(other.getNextUpdateTime())) return false; + if (!getNextUpdateTime() + .equals(other.getNextUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2031,104 +1766,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.Event parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.Event parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.Event parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 service health events that may affect Google Cloud products.
    * Event resource is a read-only view and does not allow any modifications. All
@@ -2137,23 +1867,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.servicehealth.v1.Event}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.Event)
       com.google.cloud.servicehealth.v1.EventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto
-          .internal_static_google_cloud_servicehealth_v1_Event_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto
-          .internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable
+      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.servicehealth.v1.Event.class,
-              com.google.cloud.servicehealth.v1.Event.Builder.class);
+              com.google.cloud.servicehealth.v1.Event.class, com.google.cloud.servicehealth.v1.Event.Builder.class);
     }
 
     // Construct using com.google.cloud.servicehealth.v1.Event.newBuilder()
@@ -2161,13 +1889,14 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getEventImpactsFieldBuilder();
         getUpdatesFieldBuilder();
         getUpdateTimeFieldBuilder();
@@ -2176,7 +1905,6 @@ private void maybeForceBuilderInitialization() {
         getNextUpdateTimeFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2228,9 +1956,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto
-          .internal_static_google_cloud_servicehealth_v1_Event_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_descriptor;
     }
 
     @java.lang.Override
@@ -2249,12 +1977,9 @@ public com.google.cloud.servicehealth.v1.Event build() {
 
     @java.lang.Override
     public com.google.cloud.servicehealth.v1.Event buildPartial() {
-      com.google.cloud.servicehealth.v1.Event result =
-          new com.google.cloud.servicehealth.v1.Event(this);
+      com.google.cloud.servicehealth.v1.Event result = new com.google.cloud.servicehealth.v1.Event(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -2311,20 +2036,27 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Event result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
         to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.nextUpdateTime_ =
-            nextUpdateTimeBuilder_ == null ? nextUpdateTime_ : nextUpdateTimeBuilder_.build();
+        result.nextUpdateTime_ = nextUpdateTimeBuilder_ == null
+            ? nextUpdateTime_
+            : nextUpdateTimeBuilder_.build();
         to_bitField0_ |= 0x00000008;
       }
       result.bitField0_ |= to_bitField0_;
@@ -2334,39 +2066,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event) {
-        return mergeFrom((com.google.cloud.servicehealth.v1.Event) other);
+        return mergeFrom((com.google.cloud.servicehealth.v1.Event)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2420,10 +2151,9 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.Event other) {
             eventImpactsBuilder_ = null;
             eventImpacts_ = other.eventImpacts_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            eventImpactsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEventImpactsFieldBuilder()
-                    : null;
+            eventImpactsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEventImpactsFieldBuilder() : null;
           } else {
             eventImpactsBuilder_.addAllMessages(other.eventImpacts_);
           }
@@ -2450,10 +2180,9 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.Event other) {
             updatesBuilder_ = null;
             updates_ = other.updates_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            updatesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getUpdatesFieldBuilder()
-                    : null;
+            updatesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getUpdatesFieldBuilder() : null;
           } else {
             updatesBuilder_.addAllMessages(other.updates_);
           }
@@ -2502,117 +2231,111 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                title_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                category_ = input.readEnum();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 40
-            case 64:
-              {
-                relevance_ = input.readEnum();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 64
-            case 74:
-              {
-                com.google.cloud.servicehealth.v1.EventUpdate m =
-                    input.readMessage(
-                        com.google.cloud.servicehealth.v1.EventUpdate.parser(), extensionRegistry);
-                if (updatesBuilder_ == null) {
-                  ensureUpdatesIsMutable();
-                  updates_.add(m);
-                } else {
-                  updatesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 74
-            case 82:
-              {
-                parentEvent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 98:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 114
-            case 122:
-              {
-                input.readMessage(getNextUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 122
-            case 152:
-              {
-                detailedState_ = input.readEnum();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 152
-            case 162:
-              {
-                com.google.cloud.servicehealth.v1.EventImpact m =
-                    input.readMessage(
-                        com.google.cloud.servicehealth.v1.EventImpact.parser(), extensionRegistry);
-                if (eventImpactsBuilder_ == null) {
-                  ensureEventImpactsIsMutable();
-                  eventImpacts_.add(m);
-                } else {
-                  eventImpactsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 162
-            case 168:
-              {
-                detailedCategory_ = input.readEnum();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 168
-            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: {
+              title_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              category_ = input.readEnum();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 40
+            case 64: {
+              relevance_ = input.readEnum();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 64
+            case 74: {
+              com.google.cloud.servicehealth.v1.EventUpdate m =
+                  input.readMessage(
+                      com.google.cloud.servicehealth.v1.EventUpdate.parser(),
+                      extensionRegistry);
+              if (updatesBuilder_ == null) {
+                ensureUpdatesIsMutable();
+                updates_.add(m);
+              } else {
+                updatesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 74
+            case 82: {
+              parentEvent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 98: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 114
+            case 122: {
+              input.readMessage(
+                  getNextUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 122
+            case 152: {
+              detailedState_ = input.readEnum();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 152
+            case 162: {
+              com.google.cloud.servicehealth.v1.EventImpact m =
+                  input.readMessage(
+                      com.google.cloud.servicehealth.v1.EventImpact.parser(),
+                      extensionRegistry);
+              if (eventImpactsBuilder_ == null) {
+                ensureEventImpactsIsMutable();
+                eventImpacts_.add(m);
+              } else {
+                eventImpactsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 162
+            case 168: {
+              detailedCategory_ = input.readEnum();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 168
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2622,29 +2345,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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; @@ -2653,25 +2371,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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 { @@ -2679,43 +2394,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return This builder for chaining. */ public Builder clearName() { @@ -2725,25 +2429,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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; @@ -2753,20 +2451,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object title_ = ""; /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -2775,21 +2471,20 @@ public java.lang.String getTitle() { } } /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for title. */ - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -2797,35 +2492,28 @@ public com.google.protobuf.ByteString getTitleBytes() { } } /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTitle( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTitle() { @@ -2835,21 +2523,17 @@ public Builder clearTitle() { return this; } /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000002; @@ -2859,20 +2543,18 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2881,21 +2563,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2903,35 +2584,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2941,21 +2615,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000004; @@ -2965,33 +2635,22 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int category_ = 0; /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for category. */ - @java.lang.Override - public int getCategoryValue() { + @java.lang.Override public int getCategoryValue() { return category_; } /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for category to set. * @return This builder for chaining. */ @@ -3002,37 +2661,24 @@ public Builder setCategoryValue(int value) { return this; } /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The category. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.EventCategory getCategory() { - com.google.cloud.servicehealth.v1.Event.EventCategory result = - com.google.cloud.servicehealth.v1.Event.EventCategory.forNumber(category_); - return result == null - ? com.google.cloud.servicehealth.v1.Event.EventCategory.UNRECOGNIZED - : result; + com.google.cloud.servicehealth.v1.Event.EventCategory result = com.google.cloud.servicehealth.v1.Event.EventCategory.forNumber(category_); + return result == null ? com.google.cloud.servicehealth.v1.Event.EventCategory.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The category to set. * @return This builder for chaining. */ @@ -3046,16 +2692,11 @@ public Builder setCategory(com.google.cloud.servicehealth.v1.Event.EventCategory return this; } /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCategory() { @@ -3067,33 +2708,22 @@ public Builder clearCategory() { private int detailedCategory_ = 0; /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedCategory. */ - @java.lang.Override - public int getDetailedCategoryValue() { + @java.lang.Override public int getDetailedCategoryValue() { return detailedCategory_; } /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for detailedCategory to set. * @return This builder for chaining. */ @@ -3104,42 +2734,28 @@ public Builder setDetailedCategoryValue(int value) { return this; } /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedCategory. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.DetailedCategory getDetailedCategory() { - com.google.cloud.servicehealth.v1.Event.DetailedCategory result = - com.google.cloud.servicehealth.v1.Event.DetailedCategory.forNumber(detailedCategory_); - return result == null - ? com.google.cloud.servicehealth.v1.Event.DetailedCategory.UNRECOGNIZED - : result; + com.google.cloud.servicehealth.v1.Event.DetailedCategory result = com.google.cloud.servicehealth.v1.Event.DetailedCategory.forNumber(detailedCategory_); + return result == null ? com.google.cloud.servicehealth.v1.Event.DetailedCategory.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The detailedCategory to set. * @return This builder for chaining. */ - public Builder setDetailedCategory( - com.google.cloud.servicehealth.v1.Event.DetailedCategory value) { + public Builder setDetailedCategory(com.google.cloud.servicehealth.v1.Event.DetailedCategory value) { if (value == null) { throw new NullPointerException(); } @@ -3149,16 +2765,11 @@ public Builder setDetailedCategory( return this; } /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDetailedCategory() { @@ -3169,34 +2780,23 @@ public Builder clearDetailedCategory() { } private int state_ = 0; - /** - * - * + /** *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3207,35 +2807,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.State getState() { - com.google.cloud.servicehealth.v1.Event.State result = - com.google.cloud.servicehealth.v1.Event.State.forNumber(state_); + com.google.cloud.servicehealth.v1.Event.State result = com.google.cloud.servicehealth.v1.Event.State.forNumber(state_); return result == null ? com.google.cloud.servicehealth.v1.Event.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3249,16 +2838,11 @@ public Builder setState(com.google.cloud.servicehealth.v1.Event.State value) { return this; } /** - * - * *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3270,33 +2854,22 @@ public Builder clearState() { private int detailedState_ = 0; /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedState. */ - @java.lang.Override - public int getDetailedStateValue() { + @java.lang.Override public int getDetailedStateValue() { return detailedState_; } /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for detailedState to set. * @return This builder for chaining. */ @@ -3307,37 +2880,24 @@ public Builder setDetailedStateValue(int value) { return this; } /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedState. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.DetailedState getDetailedState() { - com.google.cloud.servicehealth.v1.Event.DetailedState result = - com.google.cloud.servicehealth.v1.Event.DetailedState.forNumber(detailedState_); - return result == null - ? com.google.cloud.servicehealth.v1.Event.DetailedState.UNRECOGNIZED - : result; + com.google.cloud.servicehealth.v1.Event.DetailedState result = com.google.cloud.servicehealth.v1.Event.DetailedState.forNumber(detailedState_); + return result == null ? com.google.cloud.servicehealth.v1.Event.DetailedState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The detailedState to set. * @return This builder for chaining. */ @@ -3351,16 +2911,11 @@ public Builder setDetailedState(com.google.cloud.servicehealth.v1.Event.Detailed return this; } /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDetailedState() { @@ -3371,25 +2926,18 @@ public Builder clearDetailedState() { } private java.util.List eventImpacts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEventImpactsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - eventImpacts_ = - new java.util.ArrayList(eventImpacts_); + eventImpacts_ = new java.util.ArrayList(eventImpacts_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, - com.google.cloud.servicehealth.v1.EventImpact.Builder, - com.google.cloud.servicehealth.v1.EventImpactOrBuilder> - eventImpactsBuilder_; + com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder> eventImpactsBuilder_; /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3404,8 +2952,6 @@ public java.util.List getEventImp } } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3420,8 +2966,6 @@ public int getEventImpactsCount() { } } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3436,15 +2980,14 @@ public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) } } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public Builder setEventImpacts(int index, com.google.cloud.servicehealth.v1.EventImpact value) { + public Builder setEventImpacts( + int index, com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3458,8 +3001,6 @@ public Builder setEventImpacts(int index, com.google.cloud.servicehealth.v1.Even return this; } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3478,8 +3019,6 @@ public Builder setEventImpacts( return this; } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3500,15 +3039,14 @@ public Builder addEventImpacts(com.google.cloud.servicehealth.v1.EventImpact val return this; } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public Builder addEventImpacts(int index, com.google.cloud.servicehealth.v1.EventImpact value) { + public Builder addEventImpacts( + int index, com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3522,8 +3060,6 @@ public Builder addEventImpacts(int index, com.google.cloud.servicehealth.v1.Even return this; } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3542,8 +3078,6 @@ public Builder addEventImpacts( return this; } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3562,8 +3096,6 @@ public Builder addEventImpacts( return this; } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3574,7 +3106,8 @@ public Builder addAllEventImpacts( java.lang.Iterable values) { if (eventImpactsBuilder_ == null) { ensureEventImpactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventImpacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventImpacts_); onChanged(); } else { eventImpactsBuilder_.addAllMessages(values); @@ -3582,8 +3115,6 @@ public Builder addAllEventImpacts( return this; } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3601,8 +3132,6 @@ public Builder clearEventImpacts() { return this; } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3620,20 +3149,17 @@ public Builder removeEventImpacts(int index) { return this; } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuilder( + int index) { return getEventImpactsFieldBuilder().getBuilder(index); } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3643,22 +3169,19 @@ public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuil public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( int index) { if (eventImpactsBuilder_ == null) { - return eventImpacts_.get(index); - } else { + return eventImpacts_.get(index); } else { return eventImpactsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public java.util.List - getEventImpactsOrBuilderList() { + public java.util.List + getEventImpactsOrBuilderList() { if (eventImpactsBuilder_ != null) { return eventImpactsBuilder_.getMessageOrBuilderList(); } else { @@ -3666,8 +3189,6 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB } } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3675,48 +3196,42 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder() { - return getEventImpactsFieldBuilder() - .addBuilder(com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); + return getEventImpactsFieldBuilder().addBuilder( + com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder(int index) { - return getEventImpactsFieldBuilder() - .addBuilder(index, com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder( + int index) { + return getEventImpactsFieldBuilder().addBuilder( + index, com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); } /** - * - * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public java.util.List - getEventImpactsBuilderList() { + public java.util.List + getEventImpactsBuilderList() { return getEventImpactsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, - com.google.cloud.servicehealth.v1.EventImpact.Builder, - com.google.cloud.servicehealth.v1.EventImpactOrBuilder> + com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder> getEventImpactsFieldBuilder() { if (eventImpactsBuilder_ == null) { - eventImpactsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, - com.google.cloud.servicehealth.v1.EventImpact.Builder, - com.google.cloud.servicehealth.v1.EventImpactOrBuilder>( - eventImpacts_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + eventImpactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder>( + eventImpacts_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); eventImpacts_ = null; } return eventImpactsBuilder_; @@ -3724,35 +3239,24 @@ public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuil private int relevance_ = 0; /** - * - * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override - public int getRelevanceValue() { + @java.lang.Override public int getRelevanceValue() { return relevance_; } /** - * - * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for relevance to set. * @return This builder for chaining. */ @@ -3763,39 +3267,26 @@ public Builder setRelevanceValue(int value) { return this; } /** - * - * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The relevance. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.Relevance getRelevance() { - com.google.cloud.servicehealth.v1.Event.Relevance result = - com.google.cloud.servicehealth.v1.Event.Relevance.forNumber(relevance_); - return result == null - ? com.google.cloud.servicehealth.v1.Event.Relevance.UNRECOGNIZED - : result; + com.google.cloud.servicehealth.v1.Event.Relevance result = com.google.cloud.servicehealth.v1.Event.Relevance.forNumber(relevance_); + return result == null ? com.google.cloud.servicehealth.v1.Event.Relevance.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The relevance to set. * @return This builder for chaining. */ @@ -3809,17 +3300,12 @@ public Builder setRelevance(com.google.cloud.servicehealth.v1.Event.Relevance va return this; } /** - * - * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRelevance() { @@ -3830,31 +3316,23 @@ public Builder clearRelevance() { } private java.util.List updates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureUpdatesIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { updates_ = new java.util.ArrayList(updates_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, - com.google.cloud.servicehealth.v1.EventUpdate.Builder, - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> - updatesBuilder_; + com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> updatesBuilder_; /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getUpdatesList() { if (updatesBuilder_ == null) { @@ -3864,15 +3342,11 @@ public java.util.List getUpdatesL } } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getUpdatesCount() { if (updatesBuilder_ == null) { @@ -3882,15 +3356,11 @@ public int getUpdatesCount() { } } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { if (updatesBuilder_ == null) { @@ -3900,17 +3370,14 @@ public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { } } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdates(int index, com.google.cloud.servicehealth.v1.EventUpdate value) { + public Builder setUpdates( + int index, com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3924,15 +3391,11 @@ public Builder setUpdates(int index, com.google.cloud.servicehealth.v1.EventUpda return this; } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdates( int index, com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3946,15 +3409,11 @@ public Builder setUpdates( return this; } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addUpdates(com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { @@ -3970,17 +3429,14 @@ public Builder addUpdates(com.google.cloud.servicehealth.v1.EventUpdate value) { return this; } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addUpdates(int index, com.google.cloud.servicehealth.v1.EventUpdate value) { + public Builder addUpdates( + int index, com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3994,15 +3450,11 @@ public Builder addUpdates(int index, com.google.cloud.servicehealth.v1.EventUpda return this; } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addUpdates( com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -4016,15 +3468,11 @@ public Builder addUpdates( return this; } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addUpdates( int index, com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -4038,21 +3486,18 @@ public Builder addUpdates( return this; } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllUpdates( java.lang.Iterable values) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, updates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, updates_); onChanged(); } else { updatesBuilder_.addAllMessages(values); @@ -4060,15 +3505,11 @@ public Builder addAllUpdates( return this; } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdates() { if (updatesBuilder_ == null) { @@ -4081,15 +3522,11 @@ public Builder clearUpdates() { return this; } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeUpdates(int index) { if (updatesBuilder_ == null) { @@ -4102,50 +3539,39 @@ public Builder removeUpdates(int index) { return this; } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.EventUpdate.Builder getUpdatesBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventUpdate.Builder getUpdatesBuilder( + int index) { return getUpdatesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( + int index) { if (updatesBuilder_ == null) { - return updates_.get(index); - } else { + return updates_.get(index); } else { return updatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getUpdatesOrBuilderList() { + public java.util.List + getUpdatesOrBuilderList() { if (updatesBuilder_ != null) { return updatesBuilder_.getMessageOrBuilderList(); } else { @@ -4153,63 +3579,49 @@ public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilde } } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder() { - return getUpdatesFieldBuilder() - .addBuilder(com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); + return getUpdatesFieldBuilder().addBuilder( + com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(int index) { - return getUpdatesFieldBuilder() - .addBuilder(index, com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder( + int index) { + return getUpdatesFieldBuilder().addBuilder( + index, com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); } /** - * - * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getUpdatesBuilderList() { + public java.util.List + getUpdatesBuilderList() { return getUpdatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, - com.google.cloud.servicehealth.v1.EventUpdate.Builder, - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> + com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> getUpdatesFieldBuilder() { if (updatesBuilder_ == null) { - updatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, - com.google.cloud.servicehealth.v1.EventUpdate.Builder, - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder>( - updates_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder>( + updates_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); updates_ = null; } return updatesBuilder_; @@ -4217,8 +3629,6 @@ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(i private java.lang.Object parentEvent_ = ""; /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -4226,13 +3636,13 @@ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(i
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parentEvent. */ public java.lang.String getParentEvent() { java.lang.Object ref = parentEvent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentEvent_ = s; return s; @@ -4241,8 +3651,6 @@ public java.lang.String getParentEvent() { } } /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -4250,14 +3658,15 @@ public java.lang.String getParentEvent() {
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parentEvent. */ - public com.google.protobuf.ByteString getParentEventBytes() { + public com.google.protobuf.ByteString + getParentEventBytes() { java.lang.Object ref = parentEvent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentEvent_ = b; return b; } else { @@ -4265,8 +3674,6 @@ public com.google.protobuf.ByteString getParentEventBytes() { } } /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -4274,22 +3681,18 @@ public com.google.protobuf.ByteString getParentEventBytes() {
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The parentEvent to set. * @return This builder for chaining. */ - public Builder setParentEvent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentEvent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parentEvent_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -4297,7 +3700,6 @@ public Builder setParentEvent(java.lang.String value) {
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearParentEvent() { @@ -4307,8 +3709,6 @@ public Builder clearParentEvent() { return this; } /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -4316,14 +3716,12 @@ public Builder clearParentEvent() {
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for parentEvent to set. * @return This builder for chaining. */ - public Builder setParentEventBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentEventBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentEvent_ = value; bitField0_ |= 0x00000400; @@ -4333,58 +3731,39 @@ public Builder setParentEventBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time when the event was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Output only. The time when the event was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the event was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4400,17 +3779,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the event was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -4421,21 +3797,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the event was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -4450,15 +3822,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the event was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4471,15 +3839,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time when the event was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000800; @@ -4487,48 +3851,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the event was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time when the event was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -4536,37 +3888,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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_; /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -4577,15 +3916,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -4601,17 +3936,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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 { @@ -4622,21 +3954,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -4651,15 +3979,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4672,15 +3996,11 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00001000; @@ -4688,46 +4008,36 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -4735,35 +4045,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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_; /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -4774,14 +4073,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -4797,16 +4093,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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 { @@ -4817,20 +4111,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -4845,14 +4136,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4865,14 +4153,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00002000; @@ -4880,44 +4165,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -4925,58 +4202,39 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp nextUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - nextUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextUpdateTimeBuilder_; /** - * - * *
      * Output only. The time when the next update can be expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the nextUpdateTime field is set. */ public boolean hasNextUpdateTime() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * Output only. The time when the next update can be expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The nextUpdateTime. */ public com.google.protobuf.Timestamp getNextUpdateTime() { if (nextUpdateTimeBuilder_ == null) { - return nextUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextUpdateTime_; + return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; } else { return nextUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the next update can be expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setNextUpdateTime(com.google.protobuf.Timestamp value) { if (nextUpdateTimeBuilder_ == null) { @@ -4992,17 +4250,14 @@ public Builder setNextUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the next update can be expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setNextUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (nextUpdateTimeBuilder_ == null) { nextUpdateTime_ = builderForValue.build(); } else { @@ -5013,21 +4268,17 @@ public Builder setNextUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Output only. The time when the next update can be expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeNextUpdateTime(com.google.protobuf.Timestamp value) { if (nextUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && nextUpdateTime_ != null - && nextUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + nextUpdateTime_ != null && + nextUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getNextUpdateTimeBuilder().mergeFrom(value); } else { nextUpdateTime_ = value; @@ -5042,15 +4293,11 @@ public Builder mergeNextUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the next update can be expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearNextUpdateTime() { bitField0_ = (bitField0_ & ~0x00004000); @@ -5063,15 +4310,11 @@ public Builder clearNextUpdateTime() { return this; } /** - * - * *
      * Output only. The time when the next update can be expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getNextUpdateTimeBuilder() { bitField0_ |= 0x00004000; @@ -5079,55 +4322,43 @@ public com.google.protobuf.Timestamp.Builder getNextUpdateTimeBuilder() { return getNextUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the next update can be expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder() { if (nextUpdateTimeBuilder_ != null) { return nextUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return nextUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextUpdateTime_; + return nextUpdateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; } } /** - * - * *
      * Output only. The time when the next update can be expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getNextUpdateTimeFieldBuilder() { if (nextUpdateTimeBuilder_ == null) { - nextUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getNextUpdateTime(), getParentForChildren(), isClean()); + nextUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getNextUpdateTime(), + getParentForChildren(), + isClean()); nextUpdateTime_ = null; } return nextUpdateTimeBuilder_; } - @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); } @@ -5137,12 +4368,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.Event) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.Event) private static final com.google.cloud.servicehealth.v1.Event DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.Event(); } @@ -5151,27 +4382,27 @@ public static com.google.cloud.servicehealth.v1.Event getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Event parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5186,4 +4417,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java similarity index 68% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java index 989b0328c72f..a491fadf858f 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,59 +5,53 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * Represents the Google Cloud products and locations impacted by the event.
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.EventImpact} */ -public final class EventImpact extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EventImpact extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.EventImpact) EventImpactOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EventImpact.newBuilder() to construct. private EventImpact(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private EventImpact() {} + private EventImpact() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EventImpact(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.EventImpact.class, - com.google.cloud.servicehealth.v1.EventImpact.Builder.class); + com.google.cloud.servicehealth.v1.EventImpact.class, com.google.cloud.servicehealth.v1.EventImpact.Builder.class); } private int bitField0_; public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.servicehealth.v1.Product product_; /** - * - * *
    * Google Cloud product impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Product product = 1; - * * @return Whether the product field is set. */ @java.lang.Override @@ -80,25 +59,18 @@ public boolean hasProduct() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Google Cloud product impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Product product = 1; - * * @return The product. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Product getProduct() { - return product_ == null - ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() : product_; } /** - * - * *
    * Google Cloud product impacted by the event.
    * 
@@ -107,22 +79,17 @@ public com.google.cloud.servicehealth.v1.Product getProduct() { */ @java.lang.Override public com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder() { - return product_ == null - ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() : product_; } public static final int LOCATION_FIELD_NUMBER = 2; private com.google.cloud.servicehealth.v1.Location location_; /** - * - * *
    * Location impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Location location = 2; - * * @return Whether the location field is set. */ @java.lang.Override @@ -130,25 +97,18 @@ public boolean hasLocation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Location impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Location location = 2; - * * @return The location. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Location getLocation() { - return location_ == null - ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() - : location_; + return location_ == null ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() : location_; } /** - * - * *
    * Location impacted by the event.
    * 
@@ -157,13 +117,10 @@ public com.google.cloud.servicehealth.v1.Location getLocation() { */ @java.lang.Override public com.google.cloud.servicehealth.v1.LocationOrBuilder getLocationOrBuilder() { - return location_ == null - ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() - : location_; + return location_ == null ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() : location_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +132,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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getProduct()); } @@ -192,10 +150,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProduct()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLocation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -205,21 +165,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.cloud.servicehealth.v1.EventImpact)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.EventImpact other = - (com.google.cloud.servicehealth.v1.EventImpact) obj; + com.google.cloud.servicehealth.v1.EventImpact other = (com.google.cloud.servicehealth.v1.EventImpact) obj; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct().equals(other.getProduct())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -245,127 +206,120 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.EventImpact parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.EventImpact parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.EventImpact parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.EventImpact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.EventImpact parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 Google Cloud products and locations impacted by the event.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.EventImpact} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.EventImpact) com.google.cloud.servicehealth.v1.EventImpactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.EventImpact.class, - com.google.cloud.servicehealth.v1.EventImpact.Builder.class); + com.google.cloud.servicehealth.v1.EventImpact.class, com.google.cloud.servicehealth.v1.EventImpact.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.EventImpact.newBuilder() @@ -373,18 +327,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductFieldBuilder(); getLocationFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; } @java.lang.Override @@ -424,11 +378,8 @@ public com.google.cloud.servicehealth.v1.EventImpact build() { @java.lang.Override public com.google.cloud.servicehealth.v1.EventImpact buildPartial() { - com.google.cloud.servicehealth.v1.EventImpact result = - new com.google.cloud.servicehealth.v1.EventImpact(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.EventImpact result = new com.google.cloud.servicehealth.v1.EventImpact(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -437,11 +388,15 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.EventImpact result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.product_ = productBuilder_ == null ? product_ : productBuilder_.build(); + result.product_ = productBuilder_ == null + ? product_ + : productBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); + result.location_ = locationBuilder_ == null + ? location_ + : locationBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -451,39 +406,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact) { - return mergeFrom((com.google.cloud.servicehealth.v1.EventImpact) other); + return mergeFrom((com.google.cloud.servicehealth.v1.EventImpact)other); } else { super.mergeFrom(other); return this; @@ -524,25 +478,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getProductFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getLocationFieldBuilder().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( + getProductFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getLocationFieldBuilder().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) { @@ -552,52 +507,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.servicehealth.v1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Product, - com.google.cloud.servicehealth.v1.Product.Builder, - com.google.cloud.servicehealth.v1.ProductOrBuilder> - productBuilder_; + com.google.cloud.servicehealth.v1.Product, com.google.cloud.servicehealth.v1.Product.Builder, com.google.cloud.servicehealth.v1.ProductOrBuilder> productBuilder_; /** - * - * *
      * Google Cloud product impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Product product = 1; - * * @return Whether the product field is set. */ public boolean hasProduct() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Google Cloud product impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Product product = 1; - * * @return The product. */ public com.google.cloud.servicehealth.v1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
      * Google Cloud product impacted by the event.
      * 
@@ -618,15 +559,14 @@ public Builder setProduct(com.google.cloud.servicehealth.v1.Product value) { return this; } /** - * - * *
      * Google Cloud product impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Product product = 1; */ - public Builder setProduct(com.google.cloud.servicehealth.v1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.servicehealth.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); } else { @@ -637,8 +577,6 @@ public Builder setProduct(com.google.cloud.servicehealth.v1.Product.Builder buil return this; } /** - * - * *
      * Google Cloud product impacted by the event.
      * 
@@ -647,9 +585,9 @@ public Builder setProduct(com.google.cloud.servicehealth.v1.Product.Builder buil */ public Builder mergeProduct(com.google.cloud.servicehealth.v1.Product value) { if (productBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && product_ != null - && product_ != com.google.cloud.servicehealth.v1.Product.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + product_ != null && + product_ != com.google.cloud.servicehealth.v1.Product.getDefaultInstance()) { getProductBuilder().mergeFrom(value); } else { product_ = value; @@ -664,8 +602,6 @@ public Builder mergeProduct(com.google.cloud.servicehealth.v1.Product value) { return this; } /** - * - * *
      * Google Cloud product impacted by the event.
      * 
@@ -683,8 +619,6 @@ public Builder clearProduct() { return this; } /** - * - * *
      * Google Cloud product impacted by the event.
      * 
@@ -697,8 +631,6 @@ public com.google.cloud.servicehealth.v1.Product.Builder getProductBuilder() { return getProductFieldBuilder().getBuilder(); } /** - * - * *
      * Google Cloud product impacted by the event.
      * 
@@ -709,14 +641,11 @@ public com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder() if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.servicehealth.v1.Product.getDefaultInstance() : product_; } } /** - * - * *
      * Google Cloud product impacted by the event.
      * 
@@ -724,17 +653,14 @@ public com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder() * .google.cloud.servicehealth.v1.Product product = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Product, - com.google.cloud.servicehealth.v1.Product.Builder, - com.google.cloud.servicehealth.v1.ProductOrBuilder> + com.google.cloud.servicehealth.v1.Product, com.google.cloud.servicehealth.v1.Product.Builder, com.google.cloud.servicehealth.v1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Product, - com.google.cloud.servicehealth.v1.Product.Builder, - com.google.cloud.servicehealth.v1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.servicehealth.v1.Product, com.google.cloud.servicehealth.v1.Product.Builder, com.google.cloud.servicehealth.v1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; @@ -742,47 +668,34 @@ public com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder() private com.google.cloud.servicehealth.v1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Location, - com.google.cloud.servicehealth.v1.Location.Builder, - com.google.cloud.servicehealth.v1.LocationOrBuilder> - locationBuilder_; + com.google.cloud.servicehealth.v1.Location, com.google.cloud.servicehealth.v1.Location.Builder, com.google.cloud.servicehealth.v1.LocationOrBuilder> locationBuilder_; /** - * - * *
      * Location impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Location location = 2; - * * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Location impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Location location = 2; - * * @return The location. */ public com.google.cloud.servicehealth.v1.Location getLocation() { if (locationBuilder_ == null) { - return location_ == null - ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() - : location_; + return location_ == null ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** - * - * *
      * Location impacted by the event.
      * 
@@ -803,15 +716,14 @@ public Builder setLocation(com.google.cloud.servicehealth.v1.Location value) { return this; } /** - * - * *
      * Location impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Location location = 2; */ - public Builder setLocation(com.google.cloud.servicehealth.v1.Location.Builder builderForValue) { + public Builder setLocation( + com.google.cloud.servicehealth.v1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { @@ -822,8 +734,6 @@ public Builder setLocation(com.google.cloud.servicehealth.v1.Location.Builder bu return this; } /** - * - * *
      * Location impacted by the event.
      * 
@@ -832,9 +742,9 @@ public Builder setLocation(com.google.cloud.servicehealth.v1.Location.Builder bu */ public Builder mergeLocation(com.google.cloud.servicehealth.v1.Location value) { if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && location_ != null - && location_ != com.google.cloud.servicehealth.v1.Location.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + location_ != null && + location_ != com.google.cloud.servicehealth.v1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; @@ -849,8 +759,6 @@ public Builder mergeLocation(com.google.cloud.servicehealth.v1.Location value) { return this; } /** - * - * *
      * Location impacted by the event.
      * 
@@ -868,8 +776,6 @@ public Builder clearLocation() { return this; } /** - * - * *
      * Location impacted by the event.
      * 
@@ -882,8 +788,6 @@ public com.google.cloud.servicehealth.v1.Location.Builder getLocationBuilder() { return getLocationFieldBuilder().getBuilder(); } /** - * - * *
      * Location impacted by the event.
      * 
@@ -894,14 +798,11 @@ public com.google.cloud.servicehealth.v1.LocationOrBuilder getLocationOrBuilder( if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { - return location_ == null - ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() - : location_; + return location_ == null ? + com.google.cloud.servicehealth.v1.Location.getDefaultInstance() : location_; } } /** - * - * *
      * Location impacted by the event.
      * 
@@ -909,24 +810,21 @@ public com.google.cloud.servicehealth.v1.LocationOrBuilder getLocationOrBuilder( * .google.cloud.servicehealth.v1.Location location = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Location, - com.google.cloud.servicehealth.v1.Location.Builder, - com.google.cloud.servicehealth.v1.LocationOrBuilder> + com.google.cloud.servicehealth.v1.Location, com.google.cloud.servicehealth.v1.Location.Builder, com.google.cloud.servicehealth.v1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { - locationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Location, - com.google.cloud.servicehealth.v1.Location.Builder, - com.google.cloud.servicehealth.v1.LocationOrBuilder>( - getLocation(), getParentForChildren(), isClean()); + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.servicehealth.v1.Location, com.google.cloud.servicehealth.v1.Location.Builder, com.google.cloud.servicehealth.v1.LocationOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); location_ = null; } return locationBuilder_; } - @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); } @@ -936,12 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.EventImpact) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.EventImpact) private static final com.google.cloud.servicehealth.v1.EventImpact DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.EventImpact(); } @@ -950,27 +848,27 @@ public static com.google.cloud.servicehealth.v1.EventImpact getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventImpact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EventImpact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -985,4 +883,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.EventImpact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java similarity index 70% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java index d54b5ad2f5b5..395cccc4c742 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface EventImpactOrBuilder - extends +public interface EventImpactOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.EventImpact) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud product impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Product product = 1; - * * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
    * Google Cloud product impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Product product = 1; - * * @return The product. */ com.google.cloud.servicehealth.v1.Product getProduct(); /** - * - * *
    * Google Cloud product impacted by the event.
    * 
@@ -60,32 +36,24 @@ public interface EventImpactOrBuilder com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
    * Location impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Location location = 2; - * * @return Whether the location field is set. */ boolean hasLocation(); /** - * - * *
    * Location impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Location location = 2; - * * @return The location. */ com.google.cloud.servicehealth.v1.Location getLocation(); /** - * - * *
    * Location impacted by the event.
    * 
diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java similarity index 99% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java index 012a36a11b86..1a8e9a983b69 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java similarity index 66% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java index 2deb8152713c..1037b7b74a21 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java @@ -1,241 +1,163 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface EventOrBuilder - extends +public interface EventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.Event) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including project and location using the form
    * `projects/{project_id}/locations/{location}/events/{event_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including project and location using the form
    * `projects/{project_id}/locations/{location}/events/{event_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for title. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString + getTitleBytes(); /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for category. */ int getCategoryValue(); /** - * - * *
    * Output only. The category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The category. */ com.google.cloud.servicehealth.v1.Event.EventCategory getCategory(); /** - * - * *
    * Output only. The detailed category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedCategory. */ int getDetailedCategoryValue(); /** - * - * *
    * Output only. The detailed category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedCategory. */ com.google.cloud.servicehealth.v1.Event.DetailedCategory getDetailedCategory(); /** - * - * *
    * Output only. The current state of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.servicehealth.v1.Event.State getState(); /** - * - * *
    * Output only. The current detailed state of the incident.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedState. */ int getDetailedStateValue(); /** - * - * *
    * Output only. The current detailed state of the incident.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedState. */ com.google.cloud.servicehealth.v1.Event.DetailedState getDetailedState(); /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - java.util.List getEventImpactsList(); + java.util.List + getEventImpactsList(); /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -244,8 +166,6 @@ public interface EventOrBuilder */ com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index); /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -254,123 +174,90 @@ public interface EventOrBuilder */ int getEventImpactsCount(); /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - java.util.List + java.util.List getEventImpactsOrBuilderList(); /** - * - * *
    * Google Cloud products and locations impacted by the event.
    * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder(int index); + com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( + int index); /** - * - * *
    * Output only. Communicates why a given event is deemed relevant in the
    * context of a given project.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for relevance. */ int getRelevanceValue(); /** - * - * *
    * Output only. Communicates why a given event is deemed relevant in the
    * context of a given project.
    * 
* - * - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The relevance. */ com.google.cloud.servicehealth.v1.Event.Relevance getRelevance(); /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getUpdatesList(); + java.util.List + getUpdatesList(); /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index); /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getUpdatesCount(); /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getUpdatesOrBuilderList(); /** - * - * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index); + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( + int index); /** - * - * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -378,13 +265,10 @@ public interface EventOrBuilder
    * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parentEvent. */ java.lang.String getParentEvent(); /** - * - * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -392,163 +276,116 @@ public interface EventOrBuilder
    * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parentEvent. */ - com.google.protobuf.ByteString getParentEventBytes(); + com.google.protobuf.ByteString + getParentEventBytes(); /** - * - * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. The time when the next update can be expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the nextUpdateTime field is set. */ boolean hasNextUpdateTime(); /** - * - * *
    * Output only. The time when the next update can be expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The nextUpdateTime. */ com.google.protobuf.Timestamp getNextUpdateTime(); /** - * - * *
    * Output only. The time when the next update can be expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java new file mode 100644 index 000000000000..6d5507f8a9c4 --- /dev/null +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java @@ -0,0 +1,381 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/servicehealth/v1/event_resources.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.servicehealth.v1; + +public final class EventResourcesProto { + private EventResourcesProto() {} + 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_cloud_servicehealth_v1_Event_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_Location_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_Product_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_Asset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/servicehealth/v1/event_re" + + "sources.proto\022\035google.cloud.servicehealt" + + "h.v1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032\037google/protobu" + + "f/timestamp.proto\"\223\013\n\005Event\022\024\n\004name\030\001 \001(" + + "\tB\006\340A\003\340A\010\022\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013descrip" + + "tion\030\003 \001(\tB\003\340A\003\022I\n\010category\030\004 \001(\01622.goog" + + "le.cloud.servicehealth.v1.Event.EventCat" + + "egoryB\003\340A\003\022U\n\021detailed_category\030\025 \001(\01625." + + "google.cloud.servicehealth.v1.Event.Deta" + + "iledCategoryB\003\340A\003\022>\n\005state\030\005 \001(\0162*.googl" + + "e.cloud.servicehealth.v1.Event.StateB\003\340A" + + "\003\022O\n\016detailed_state\030\023 \001(\01622.google.cloud" + + ".servicehealth.v1.Event.DetailedStateB\003\340" + + "A\003\022A\n\revent_impacts\030\024 \003(\0132*.google.cloud" + + ".servicehealth.v1.EventImpact\022F\n\trelevan" + + "ce\030\010 \001(\0162..google.cloud.servicehealth.v1" + + ".Event.RelevanceB\003\340A\003\022@\n\007updates\030\t \003(\0132*" + + ".google.cloud.servicehealth.v1.EventUpda" + + "teB\003\340A\003\022\031\n\014parent_event\030\n \001(\tB\003\340A\003\0224\n\013up" + + "date_time\030\014 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0223\n\nstart_time\030\r \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\016 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0229\n\020next" + + "_update_time\030\017 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\"=\n\rEventCategory\022\036\n\032EVENT_CA" + + "TEGORY_UNSPECIFIED\020\000\022\014\n\010INCIDENT\020\002\"d\n\020De" + + "tailedCategory\022!\n\035DETAILED_CATEGORY_UNSP" + + "ECIFIED\020\000\022\026\n\022CONFIRMED_INCIDENT\020\001\022\025\n\021EME" + + "RGING_INCIDENT\020\002\"6\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006CLOSED\020\002\"\213\001\n\rDet" + + "ailedState\022\036\n\032DETAILED_STATE_UNSPECIFIED" + + "\020\000\022\014\n\010EMERGING\020\001\022\r\n\tCONFIRMED\020\002\022\014\n\010RESOL" + + "VED\020\003\022\n\n\006MERGED\020\004\022\017\n\013AUTO_CLOSED\020\t\022\022\n\016FA" + + "LSE_POSITIVE\020\n\"w\n\tRelevance\022\031\n\025RELEVANCE" + + "_UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\002\022\020\n\014NOT_IMPAC" + + "TED\020\006\022\025\n\021PARTIALLY_RELATED\020\007\022\013\n\007RELATED\020" + + "\010\022\014\n\010IMPACTED\020\t:n\352Ak\n\"servicehealth.goog" + + "leapis.com/Event\0226projects/{project}/loc" + + "ations/{location}/events/{event}*\006events" + + "2\005event\"\317\n\n\021OrganizationEvent\022\024\n\004name\030\001 " + + "\001(\tB\006\340A\003\340A\010\022\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013descr" + + "iption\030\003 \001(\tB\003\340A\003\022U\n\010category\030\004 \001(\0162>.go" + + "ogle.cloud.servicehealth.v1.Organization" + + "Event.EventCategoryB\003\340A\003\022a\n\021detailed_cat" + + "egory\030\021 \001(\0162A.google.cloud.servicehealth" + + ".v1.OrganizationEvent.DetailedCategoryB\003" + + "\340A\003\022J\n\005state\030\005 \001(\01626.google.cloud.servic" + + "ehealth.v1.OrganizationEvent.StateB\003\340A\003\022" + + "[\n\016detailed_state\030\020 \001(\0162>.google.cloud.s" + + "ervicehealth.v1.OrganizationEvent.Detail" + + "edStateB\003\340A\003\022F\n\revent_impacts\030\017 \003(\0132*.go" + + "ogle.cloud.servicehealth.v1.EventImpactB" + + "\003\340A\003\022@\n\007updates\030\010 \003(\0132*.google.cloud.ser" + + "vicehealth.v1.EventUpdateB\003\340A\003\022\031\n\014parent" + + "_event\030\t \001(\tB\003\340A\003\0224\n\013update_time\030\013 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0223\n\nstart" + + "_time\030\014 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\r \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0229\n\020next_update_time\030\016 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\"=\n\rEv" + + "entCategory\022\036\n\032EVENT_CATEGORY_UNSPECIFIE" + + "D\020\000\022\014\n\010INCIDENT\020\002\"d\n\020DetailedCategory\022!\n" + + "\035DETAILED_CATEGORY_UNSPECIFIED\020\000\022\026\n\022CONF" + + "IRMED_INCIDENT\020\001\022\025\n\021EMERGING_INCIDENT\020\002\"" + + "6\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\n\n\006CLOSED\020\002\"\213\001\n\rDetailedState\022\036\n\032DET" + + "AILED_STATE_UNSPECIFIED\020\000\022\014\n\010EMERGING\020\001\022" + + "\r\n\tCONFIRMED\020\002\022\014\n\010RESOLVED\020\003\022\n\n\006MERGED\020\004" + + "\022\017\n\013AUTO_CLOSED\020\t\022\022\n\016FALSE_POSITIVE\020\n:\251\001" + + "\352A\245\001\n.servicehealth.googleapis.com/Organ" + + "izationEvent\022Lorganizations/{organizatio" + + "n}/locations/{location}/organizationEven" + + "ts/{event}*\022organizationEvents2\021organiza" + + "tionEvent\"\240\001\n\013EventUpdate\0224\n\013update_time" + + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013description\030\003 \001(\t" + + "B\003\340A\003\022\024\n\007symptom\030\004 \001(\tB\003\340A\003\022\027\n\nworkaroun" + + "d\030\005 \001(\tB\003\340A\003\"!\n\010Location\022\025\n\rlocation_nam" + + "e\030\001 \001(\t\"\037\n\007Product\022\024\n\014product_name\030\001 \001(\t" + + "\"\201\001\n\013EventImpact\0227\n\007product\030\001 \001(\0132&.goog" + + "le.cloud.servicehealth.v1.Product\0229\n\010loc" + + "ation\030\002 \001(\0132\'.google.cloud.servicehealth" + + ".v1.Location\"\224\003\n\022OrganizationImpact\022\024\n\004n" + + "ame\030\001 \001(\tB\006\340A\003\340A\010\022:\n\006events\030\002 \003(\tB*\340A\003\372A" + + "$\n\"servicehealth.googleapis.com/Event\0228\n" + + "\005asset\030\003 \001(\0132$.google.cloud.servicehealt" + + "h.v1.AssetB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003:\273\001\352A\267\001\n/se" + + "rvicehealth.googleapis.com/OrganizationI" + + "mpact\022[organizations/{organization}/loca" + + "tions/{location}/organizationImpacts/{or" + + "ganization_impact}*\023organizationImpacts2" + + "\022organizationImpact\"9\n\005Asset\022\027\n\nasset_na" + + "me\030\001 \001(\tB\003\340A\003\022\027\n\nasset_type\030\002 \001(\tB\003\340A\003\"\322" + + "\001\n\021ListEventsRequest\022:\n\006parent\030\001 \001(\tB*\340A" + + "\002\372A$\022\"servicehealth.googleapis.com/Event" + + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" + + " \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022;\n\004view\030\006" + + " \001(\0162(.google.cloud.servicehealth.v1.Eve" + + "ntViewB\003\340A\001\"\207\001\n\022ListEventsResponse\0229\n\006ev" + + "ents\030\001 \003(\0132$.google.cloud.servicehealth." + + "v1.EventB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003" + + "\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"K\n\017GetEven" + + "tRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"serviceh" + + "ealth.googleapis.com/Event\"\366\001\n\035ListOrgan" + + "izationEventsRequest\022F\n\006parent\030\001 \001(\tB6\340A" + + "\002\372A0\022.servicehealth.googleapis.com/Organ" + + "izationEvent\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340" + + "A\001\022G\n\004view\030\006 \001(\01624.google.cloud.serviceh" + + "ealth.v1.OrganizationEventViewB\003\340A\001\"\254\001\n\036" + + "ListOrganizationEventsResponse\022R\n\023organi" + + "zation_events\030\001 \003(\01320.google.cloud.servi" + + "cehealth.v1.OrganizationEventB\003\340A\003\022\034\n\017ne" + + "xt_page_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030" + + "\003 \003(\tB\003\340A\003\"c\n\033GetOrganizationEventReques" + + "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.servicehealth.g" + + "oogleapis.com/OrganizationEvent\"\257\001\n\036List" + + "OrganizationImpactsRequest\022G\n\006parent\030\001 \001" + + "(\tB7\340A\002\372A1\022/servicehealth.googleapis.com" + + "/OrganizationImpact\022\026\n\tpage_size\030\002 \001(\005B\003" + + "\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004" + + " \001(\tB\003\340A\001\"\257\001\n\037ListOrganizationImpactsRes" + + "ponse\022T\n\024organization_impacts\030\001 \003(\01321.go" + + "ogle.cloud.servicehealth.v1.Organization" + + "ImpactB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" + + "\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"e\n\034GetOrgani" + + "zationImpactRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A" + + "1\n/servicehealth.googleapis.com/Organiza" + + "tionImpact*R\n\tEventView\022\032\n\026EVENT_VIEW_UN" + + "SPECIFIED\020\000\022\024\n\020EVENT_VIEW_BASIC\020\001\022\023\n\017EVE" + + "NT_VIEW_FULL\020\002*\205\001\n\025OrganizationEventView" + + "\022\'\n#ORGANIZATION_EVENT_VIEW_UNSPECIFIED\020" + + "\000\022!\n\035ORGANIZATION_EVENT_VIEW_BASIC\020\001\022 \n\034" + + "ORGANIZATION_EVENT_VIEW_FULL\020\002B\317\002\n!com.g" + + "oogle.cloud.servicehealth.v1B\023EventResou" + + "rcesProtoP\001ZGcloud.google.com/go/service" + + "health/apiv1/servicehealthpb;serviceheal" + + "thpb\252\002\035Google.Cloud.ServiceHealth.V1\312\002\035G" + + "oogle\\Cloud\\ServiceHealth\\V1\352\002 Google::C" + + "loud::ServiceHealth::V1\352Af\n1servicehealt" + + "h.googleapis.com/OrganizationLocation\0221o" + + "rganizations/{organization}/locations/{l" + + "ocation}b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_servicehealth_v1_Event_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_Event_descriptor, + new java.lang.String[] { "Name", "Title", "Description", "Category", "DetailedCategory", "State", "DetailedState", "EventImpacts", "Relevance", "Updates", "ParentEvent", "UpdateTime", "StartTime", "EndTime", "NextUpdateTime", }); + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor, + new java.lang.String[] { "Name", "Title", "Description", "Category", "DetailedCategory", "State", "DetailedState", "EventImpacts", "Updates", "ParentEvent", "UpdateTime", "StartTime", "EndTime", "NextUpdateTime", }); + internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor, + new java.lang.String[] { "UpdateTime", "Title", "Description", "Symptom", "Workaround", }); + internal_static_google_cloud_servicehealth_v1_Location_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_Location_descriptor, + new java.lang.String[] { "LocationName", }); + internal_static_google_cloud_servicehealth_v1_Product_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_Product_descriptor, + new java.lang.String[] { "ProductName", }); + internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor, + new java.lang.String[] { "Product", "Location", }); + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor, + new java.lang.String[] { "Name", "Events", "Asset", "UpdateTime", }); + internal_static_google_cloud_servicehealth_v1_Asset_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_Asset_descriptor, + new java.lang.String[] { "AssetName", "AssetType", }); + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "View", }); + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor, + new java.lang.String[] { "Events", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "View", }); + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor, + new java.lang.String[] { "OrganizationEvents", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor, + new java.lang.String[] { "OrganizationImpacts", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor, + new java.lang.String[] { "Name", }); + 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.resourceDefinition); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java new file mode 100644 index 000000000000..b9f19a46bbbc --- /dev/null +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/servicehealth/v1/event_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.servicehealth.v1; + +public final class EventServiceProto { + private EventServiceProto() {} + 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 = { + "\n1google/cloud/servicehealth/v1/event_se" + + "rvice.proto\022\035google.cloud.servicehealth." + + "v1\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\0323google/cloud/serviceh" + + "ealth/v1/event_resources.proto2\252\n\n\rServi" + + "ceHealth\022\256\001\n\nListEvents\0220.google.cloud.s" + + "ervicehealth.v1.ListEventsRequest\0321.goog" + + "le.cloud.servicehealth.v1.ListEventsResp" + + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=proje" + + "cts/*/locations/*}/events\022\233\001\n\010GetEvent\022." + + ".google.cloud.servicehealth.v1.GetEventR" + + "equest\032$.google.cloud.servicehealth.v1.E" + + "vent\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/" + + "*/locations/*/events/*}\022\343\001\n\026ListOrganiza" + + "tionEvents\022<.google.cloud.servicehealth." + + "v1.ListOrganizationEventsRequest\032=.googl" + + "e.cloud.servicehealth.v1.ListOrganizatio" + + "nEventsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{p" + + "arent=organizations/*/locations/*}/organ" + + "izationEvents\022\320\001\n\024GetOrganizationEvent\022:" + + ".google.cloud.servicehealth.v1.GetOrgani" + + "zationEventRequest\0320.google.cloud.servic" + + "ehealth.v1.OrganizationEvent\"J\332A\004name\202\323\344" + + "\223\002=\022;/v1/{name=organizations/*/locations" + + "/*/organizationEvents/*}\022\347\001\n\027ListOrganiz" + + "ationImpacts\022=.google.cloud.servicehealt" + + "h.v1.ListOrganizationImpactsRequest\032>.go" + + "ogle.cloud.servicehealth.v1.ListOrganiza" + + "tionImpactsResponse\"M\332A\006parent\202\323\344\223\002>\022\022 * Records an update made to the event. *
* * Protobuf type {@code google.cloud.servicehealth.v1.EventUpdate} */ -public final class EventUpdate extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EventUpdate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.EventUpdate) EventUpdateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EventUpdate.newBuilder() to construct. private EventUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EventUpdate() { title_ = ""; description_ = ""; @@ -47,38 +29,33 @@ private EventUpdate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EventUpdate(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.EventUpdate.class, - com.google.cloud.servicehealth.v1.EventUpdate.Builder.class); + com.google.cloud.servicehealth.v1.EventUpdate.class, com.google.cloud.servicehealth.v1.EventUpdate.Builder.class); } private int bitField0_; public static final int UPDATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -86,15 +63,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -102,14 +75,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -117,18 +87,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int TITLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** - * - * *
    * Output only. Brief title for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The title. */ @java.lang.Override @@ -137,29 +103,29 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** - * - * *
    * Output only. Brief title for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -168,18 +134,14 @@ public com.google.protobuf.ByteString getTitleBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ @java.lang.Override @@ -188,29 +150,29 @@ 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; } } /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -219,18 +181,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int SYMPTOM_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object symptom_ = ""; /** - * - * *
    * Output only. Symptoms of the event, if available.
    * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The symptom. */ @java.lang.Override @@ -239,29 +197,29 @@ public java.lang.String getSymptom() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symptom_ = s; return s; } } /** - * - * *
    * Output only. Symptoms of the event, if available.
    * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for symptom. */ @java.lang.Override - public com.google.protobuf.ByteString getSymptomBytes() { + public com.google.protobuf.ByteString + getSymptomBytes() { java.lang.Object ref = symptom_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); symptom_ = b; return b; } else { @@ -270,18 +228,14 @@ public com.google.protobuf.ByteString getSymptomBytes() { } public static final int WORKAROUND_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object workaround_ = ""; /** - * - * *
    * Output only. Workaround steps to remediate the event impact, if available.
    * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workaround. */ @java.lang.Override @@ -290,29 +244,29 @@ public java.lang.String getWorkaround() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workaround_ = s; return s; } } /** - * - * *
    * Output only. Workaround steps to remediate the event impact, if available.
    * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workaround. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkaroundBytes() { + public com.google.protobuf.ByteString + getWorkaroundBytes() { java.lang.Object ref = workaround_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workaround_ = b; return b; } else { @@ -321,7 +275,6 @@ public com.google.protobuf.ByteString getWorkaroundBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,7 +286,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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getUpdateTime()); } @@ -359,7 +313,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); @@ -381,22 +336,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.cloud.servicehealth.v1.EventUpdate)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.EventUpdate other = - (com.google.cloud.servicehealth.v1.EventUpdate) obj; + com.google.cloud.servicehealth.v1.EventUpdate other = (com.google.cloud.servicehealth.v1.EventUpdate) obj; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getTitle().equals(other.getTitle())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getSymptom().equals(other.getSymptom())) return false; - if (!getWorkaround().equals(other.getWorkaround())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getSymptom() + .equals(other.getSymptom())) return false; + if (!getWorkaround() + .equals(other.getWorkaround())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -425,127 +384,120 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.EventUpdate parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.EventUpdate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.EventUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.EventUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.EventUpdate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Records an update made to the event.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.EventUpdate} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.EventUpdate) com.google.cloud.servicehealth.v1.EventUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.EventUpdate.class, - com.google.cloud.servicehealth.v1.EventUpdate.Builder.class); + com.google.cloud.servicehealth.v1.EventUpdate.class, com.google.cloud.servicehealth.v1.EventUpdate.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.EventUpdate.newBuilder() @@ -553,17 +505,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getUpdateTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -581,9 +533,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; } @java.lang.Override @@ -602,11 +554,8 @@ public com.google.cloud.servicehealth.v1.EventUpdate build() { @java.lang.Override public com.google.cloud.servicehealth.v1.EventUpdate buildPartial() { - com.google.cloud.servicehealth.v1.EventUpdate result = - new com.google.cloud.servicehealth.v1.EventUpdate(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.EventUpdate result = new com.google.cloud.servicehealth.v1.EventUpdate(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -615,7 +564,9 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.EventUpdate result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -637,39 +588,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate) { - return mergeFrom((com.google.cloud.servicehealth.v1.EventUpdate) other); + return mergeFrom((com.google.cloud.servicehealth.v1.EventUpdate)other); } else { super.mergeFrom(other); return this; @@ -727,43 +677,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - symptom_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - workaround_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + symptom_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + workaround_ = 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) { @@ -773,63 +719,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -845,17 +771,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -866,21 +789,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -895,15 +814,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -916,15 +831,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000001; @@ -932,48 +843,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -981,20 +880,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object title_ = ""; /** - * - * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -1003,21 +900,20 @@ public java.lang.String getTitle() { } } /** - * - * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for title. */ - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -1025,35 +921,28 @@ public com.google.protobuf.ByteString getTitleBytes() { } } /** - * - * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTitle( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTitle() { @@ -1063,21 +952,17 @@ public Builder clearTitle() { return this; } /** - * - * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000002; @@ -1087,20 +972,18 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1109,21 +992,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1131,35 +1013,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1169,21 +1044,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000004; @@ -1193,20 +1064,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object symptom_ = ""; /** - * - * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The symptom. */ public java.lang.String getSymptom() { java.lang.Object ref = symptom_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symptom_ = s; return s; @@ -1215,21 +1084,20 @@ public java.lang.String getSymptom() { } } /** - * - * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for symptom. */ - public com.google.protobuf.ByteString getSymptomBytes() { + public com.google.protobuf.ByteString + getSymptomBytes() { java.lang.Object ref = symptom_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); symptom_ = b; return b; } else { @@ -1237,35 +1105,28 @@ public com.google.protobuf.ByteString getSymptomBytes() { } } /** - * - * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The symptom to set. * @return This builder for chaining. */ - public Builder setSymptom(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSymptom( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } symptom_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSymptom() { @@ -1275,21 +1136,17 @@ public Builder clearSymptom() { return this; } /** - * - * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for symptom to set. * @return This builder for chaining. */ - public Builder setSymptomBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSymptomBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); symptom_ = value; bitField0_ |= 0x00000008; @@ -1299,20 +1156,18 @@ public Builder setSymptomBytes(com.google.protobuf.ByteString value) { private java.lang.Object workaround_ = ""; /** - * - * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workaround. */ public java.lang.String getWorkaround() { java.lang.Object ref = workaround_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workaround_ = s; return s; @@ -1321,21 +1176,20 @@ public java.lang.String getWorkaround() { } } /** - * - * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workaround. */ - public com.google.protobuf.ByteString getWorkaroundBytes() { + public com.google.protobuf.ByteString + getWorkaroundBytes() { java.lang.Object ref = workaround_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workaround_ = b; return b; } else { @@ -1343,35 +1197,28 @@ public com.google.protobuf.ByteString getWorkaroundBytes() { } } /** - * - * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The workaround to set. * @return This builder for chaining. */ - public Builder setWorkaround(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkaround( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workaround_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWorkaround() { @@ -1381,30 +1228,26 @@ public Builder clearWorkaround() { return this; } /** - * - * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for workaround to set. * @return This builder for chaining. */ - public Builder setWorkaroundBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkaroundBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workaround_ = 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); } @@ -1414,12 +1257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.EventUpdate) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.EventUpdate) private static final com.google.cloud.servicehealth.v1.EventUpdate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.EventUpdate(); } @@ -1428,27 +1271,27 @@ public static com.google.cloud.servicehealth.v1.EventUpdate getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EventUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1463,4 +1306,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.EventUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java similarity index 71% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java index 167e812d63bd..9ef50e6d3f08 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java @@ -1,164 +1,117 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface EventUpdateOrBuilder - extends +public interface EventUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.EventUpdate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Brief title for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
    * Output only. Brief title for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for title. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString + getTitleBytes(); /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. Symptoms of the event, if available.
    * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The symptom. */ java.lang.String getSymptom(); /** - * - * *
    * Output only. Symptoms of the event, if available.
    * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for symptom. */ - com.google.protobuf.ByteString getSymptomBytes(); + com.google.protobuf.ByteString + getSymptomBytes(); /** - * - * *
    * Output only. Workaround steps to remediate the event impact, if available.
    * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workaround. */ java.lang.String getWorkaround(); /** - * - * *
    * Output only. Workaround steps to remediate the event impact, if available.
    * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workaround. */ - com.google.protobuf.ByteString getWorkaroundBytes(); + com.google.protobuf.ByteString + getWorkaroundBytes(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java similarity index 67% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java index c7ac700b260d..b38561aec21f 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,8 +5,6 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * The event fields to include in ListEvents API response. This enum lists all
  * possible event views.
@@ -29,10 +12,9 @@
  *
  * Protobuf enum {@code google.cloud.servicehealth.v1.EventView}
  */
-public enum EventView implements com.google.protobuf.ProtocolMessageEnum {
+public enum EventView
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Unspecified event view. Default to `EVENT_VIEW_BASIC`.
    * 
@@ -41,8 +23,6 @@ public enum EventView implements com.google.protobuf.ProtocolMessageEnum { */ EVENT_VIEW_UNSPECIFIED(0), /** - * - * *
    * Includes all fields except `updates`. This view is the default for
    * ListEvents API.
@@ -52,8 +32,6 @@ public enum EventView implements com.google.protobuf.ProtocolMessageEnum {
    */
   EVENT_VIEW_BASIC(1),
   /**
-   *
-   *
    * 
    * Includes all event fields.
    * 
@@ -65,8 +43,6 @@ public enum EventView implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified event view. Default to `EVENT_VIEW_BASIC`.
    * 
@@ -75,8 +51,6 @@ public enum EventView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVENT_VIEW_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Includes all fields except `updates`. This view is the default for
    * ListEvents API.
@@ -86,8 +60,6 @@ public enum EventView implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int EVENT_VIEW_BASIC_VALUE = 1;
   /**
-   *
-   *
    * 
    * Includes all event fields.
    * 
@@ -96,6 +68,7 @@ public enum EventView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVENT_VIEW_FULL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -120,51 +93,49 @@ public static EventView valueOf(int value) { */ public static EventView forNumber(int value) { switch (value) { - case 0: - return EVENT_VIEW_UNSPECIFIED; - case 1: - return EVENT_VIEW_BASIC; - case 2: - return EVENT_VIEW_FULL; - default: - return null; + case 0: return EVENT_VIEW_UNSPECIFIED; + case 1: return EVENT_VIEW_BASIC; + case 2: return EVENT_VIEW_FULL; + 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 EventView findValueByNumber(int number) { - return EventView.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + EventView> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventView findValueByNumber(int number) { + return EventView.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.cloud.servicehealth.v1.EventResourcesProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.getDescriptor().getEnumTypes().get(0); } private static final EventView[] VALUES = values(); - public static EventView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventView 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,3 +151,4 @@ private EventView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.servicehealth.v1.EventView) } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java similarity index 66% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java index e6c145d30bf1..91b4052d50b2 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,56 +5,49 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * Message for getting an event
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.GetEventRequest} */ -public final class GetEventRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.GetEventRequest) GetEventRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetEventRequest.newBuilder() to construct. private GetEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEventRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetEventRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetEventRequest.class, - com.google.cloud.servicehealth.v1.GetEventRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetEventRequest.class, com.google.cloud.servicehealth.v1.GetEventRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Unique name of the event in this scope including project
    * and location using the form
@@ -80,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `event_id` - Event ID to retrieve.
    * 
* - * - * 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 @@ -92,15 +67,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. Unique name of the event in this scope including project
    * and location using the form
@@ -111,18 +85,17 @@ public java.lang.String getName() {
    * `event_id` - Event ID to retrieve.
    * 
* - * - * 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 { @@ -131,7 +104,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,7 +115,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_); } @@ -167,15 +140,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.cloud.servicehealth.v1.GetEventRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.GetEventRequest other = - (com.google.cloud.servicehealth.v1.GetEventRequest) obj; + com.google.cloud.servicehealth.v1.GetEventRequest other = (com.google.cloud.servicehealth.v1.GetEventRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -195,135 +168,131 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.GetEventRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.GetEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.GetEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.GetEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Message for getting an event
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.GetEventRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.GetEventRequest) com.google.cloud.servicehealth.v1.GetEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetEventRequest.class, - com.google.cloud.servicehealth.v1.GetEventRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetEventRequest.class, com.google.cloud.servicehealth.v1.GetEventRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.GetEventRequest.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,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; } @java.lang.Override @@ -354,11 +323,8 @@ public com.google.cloud.servicehealth.v1.GetEventRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.GetEventRequest buildPartial() { - com.google.cloud.servicehealth.v1.GetEventRequest result = - new com.google.cloud.servicehealth.v1.GetEventRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.GetEventRequest result = new com.google.cloud.servicehealth.v1.GetEventRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -374,39 +340,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.GetEventRequest) other); + return mergeFrom((com.google.cloud.servicehealth.v1.GetEventRequest)other); } else { super.mergeFrom(other); return this; @@ -414,8 +379,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.GetEventRequest other) { - if (other == com.google.cloud.servicehealth.v1.GetEventRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.servicehealth.v1.GetEventRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -447,19 +411,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) { @@ -469,13 +431,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Unique name of the event in this scope including project
      * and location using the form
@@ -486,16 +445,14 @@ public Builder mergeFrom(
      * `event_id` - Event ID to retrieve.
      * 
* - * - * 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; @@ -504,8 +461,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Unique name of the event in this scope including project
      * and location using the form
@@ -516,17 +471,16 @@ public java.lang.String getName() {
      * `event_id` - Event ID to retrieve.
      * 
* - * - * 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 { @@ -534,8 +488,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Unique name of the event in this scope including project
      * and location using the form
@@ -546,25 +498,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * `event_id` - Event ID to retrieve.
      * 
* - * - * 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. Unique name of the event in this scope including project
      * and location using the form
@@ -575,10 +521,7 @@ public Builder setName(java.lang.String value) {
      * `event_id` - Event ID to retrieve.
      * 
* - * - * 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() { @@ -588,8 +531,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Unique name of the event in this scope including project
      * and location using the form
@@ -600,26 +541,22 @@ public Builder clearName() {
      * `event_id` - Event ID to retrieve.
      * 
* - * - * 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); } @@ -629,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.GetEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.GetEventRequest) private static final com.google.cloud.servicehealth.v1.GetEventRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.GetEventRequest(); } @@ -643,27 +580,27 @@ public static com.google.cloud.servicehealth.v1.GetEventRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -678,4 +615,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.GetEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java similarity index 56% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java index 9d5b047022a7..c7777b0d42bc 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface GetEventRequestOrBuilder - extends +public interface GetEventRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.GetEventRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Unique name of the event in this scope including project
    * and location using the form
@@ -37,16 +19,11 @@ public interface GetEventRequestOrBuilder
    * `event_id` - Event ID to retrieve.
    * 
* - * - * 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. Unique name of the event in this scope including project
    * and location using the form
@@ -57,11 +34,9 @@ public interface GetEventRequestOrBuilder
    * `event_id` - Event ID to retrieve.
    * 
* - * - * 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(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java similarity index 66% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java index 95a6312e01a6..0e604c086dcb 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java @@ -1,67 +1,49 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationEventRequest} */ -public final class GetOrganizationEventRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationEventRequest} + */ +public final class GetOrganizationEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.GetOrganizationEventRequest) GetOrganizationEventRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetOrganizationEventRequest.newBuilder() to construct. private GetOrganizationEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetOrganizationEventRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetOrganizationEventRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Unique name of the event in this scope including organization and
    * event ID using the form
@@ -74,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `event_id` - Organization event ID to retrieve.
    * 
* - * - * 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 @@ -86,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. Unique name of the event in this scope including organization and
    * event ID using the form
@@ -107,18 +85,17 @@ public java.lang.String getName() {
    * `event_id` - Organization event ID to retrieve.
    * 
* - * - * 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 { @@ -127,7 +104,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +115,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_); } @@ -163,15 +140,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.cloud.servicehealth.v1.GetOrganizationEventRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest other = - (com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) obj; + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest other = (com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,128 +168,127 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest prototype) { + public static Builder newBuilder(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } - /** Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationEventRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.GetOrganizationEventRequest) com.google.cloud.servicehealth.v1.GetOrganizationEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.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(); @@ -322,14 +298,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.getDefaultInstance(); } @@ -344,17 +319,13 @@ public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest buildPartial() { - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest result = - new com.google.cloud.servicehealth.v1.GetOrganizationEventRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest result = new com.google.cloud.servicehealth.v1.GetOrganizationEventRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest result) { + private void buildPartial0(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -365,39 +336,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.cloud.servicehealth.v1.GetOrganizationEventRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) other); + return mergeFrom((com.google.cloud.servicehealth.v1.GetOrganizationEventRequest)other); } else { super.mergeFrom(other); return this; @@ -405,9 +375,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest other) { - if (other - == com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +407,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,13 +427,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -480,16 +443,14 @@ public Builder mergeFrom(
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * 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; @@ -498,8 +459,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -512,17 +471,16 @@ public java.lang.String getName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * 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 { @@ -530,8 +488,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -544,25 +500,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * 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. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -575,10 +525,7 @@ public Builder setName(java.lang.String value) {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * 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() { @@ -588,8 +535,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -602,26 +547,22 @@ public Builder clearName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * 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); } @@ -631,13 +572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.GetOrganizationEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.GetOrganizationEventRequest) - private static final com.google.cloud.servicehealth.v1.GetOrganizationEventRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.servicehealth.v1.GetOrganizationEventRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.GetOrganizationEventRequest(); } @@ -646,27 +586,27 @@ public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetOrganizationEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,4 +621,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java similarity index 61% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java index a59b8e435b5a..f44e91296ed6 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface GetOrganizationEventRequestOrBuilder - extends +public interface GetOrganizationEventRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.GetOrganizationEventRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Unique name of the event in this scope including organization and
    * event ID using the form
@@ -39,16 +21,11 @@ public interface GetOrganizationEventRequestOrBuilder
    * `event_id` - Organization event ID to retrieve.
    * 
* - * - * 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. Unique name of the event in this scope including organization and
    * event ID using the form
@@ -61,11 +38,9 @@ public interface GetOrganizationEventRequestOrBuilder
    * `event_id` - Organization event ID to retrieve.
    * 
* - * - * 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(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java similarity index 66% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java index a08e4ef1f789..04a70932be8a 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java @@ -1,67 +1,49 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationImpactRequest} */ -public final class GetOrganizationImpactRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationImpactRequest} + */ +public final class GetOrganizationImpactRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) GetOrganizationImpactRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetOrganizationImpactRequest.newBuilder() to construct. private GetOrganizationImpactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetOrganizationImpactRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetOrganizationImpactRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the resource using the form
    * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -74,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * - * 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 @@ -86,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. Name of the resource using the form
    * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -107,18 +85,17 @@ public java.lang.String getName() {
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * - * 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 { @@ -127,7 +104,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +115,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_); } @@ -163,15 +140,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.cloud.servicehealth.v1.GetOrganizationImpactRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest other = - (com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) obj; + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest other = (com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,128 +168,127 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest prototype) { + public static Builder newBuilder(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } - /** Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationImpactRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationImpactRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) com.google.cloud.servicehealth.v1.GetOrganizationImpactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.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(); @@ -322,14 +298,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.getDefaultInstance(); } @@ -344,17 +319,13 @@ public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest buildPartial() { - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest result = - new com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest result = new com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest result) { + private void buildPartial0(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -365,39 +336,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.cloud.servicehealth.v1.GetOrganizationImpactRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) other); + return mergeFrom((com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest)other); } else { super.mergeFrom(other); return this; @@ -405,9 +375,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest other) { - if (other - == com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +407,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,13 +427,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -480,16 +443,14 @@ public Builder mergeFrom(
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * 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; @@ -498,8 +459,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -512,17 +471,16 @@ public java.lang.String getName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * 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 { @@ -530,8 +488,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -544,25 +500,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * 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. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -575,10 +525,7 @@ public Builder setName(java.lang.String value) {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * 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() { @@ -588,8 +535,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -602,26 +547,22 @@ public Builder clearName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * 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); } @@ -631,43 +572,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) - private static final com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest(); } - public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest - getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationImpactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetOrganizationImpactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +618,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java similarity index 64% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java index 5b625ed0ce8f..62be4fc9936d 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface GetOrganizationImpactRequestOrBuilder - extends +public interface GetOrganizationImpactRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the resource using the form
    * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -39,16 +21,11 @@ public interface GetOrganizationImpactRequestOrBuilder
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * - * 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. Name of the resource using the form
    * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -61,11 +38,9 @@ public interface GetOrganizationImpactRequestOrBuilder
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * - * 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(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java similarity index 74% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java index 3f37d87b33dd..62cd14bdad61 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java @@ -1,35 +1,21 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** Protobuf type {@code google.cloud.servicehealth.v1.ListEventsRequest} */ -public final class ListEventsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.servicehealth.v1.ListEventsRequest} + */ +public final class ListEventsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListEventsRequest) ListEventsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEventsRequest.newBuilder() to construct. private ListEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEventsRequest() { parent_ = ""; pageToken_ = ""; @@ -39,32 +25,28 @@ private ListEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEventsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListEventsRequest.class, - com.google.cloud.servicehealth.v1.ListEventsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListEventsRequest.class, com.google.cloud.servicehealth.v1.ListEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent value using the form
    * `projects/{project_id}/locations/{location}/events`.
@@ -76,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `global`.
    * 
* - * - * 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 @@ -88,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. Parent value using the form
    * `projects/{project_id}/locations/{location}/events`.
@@ -108,18 +86,17 @@ public java.lang.String getParent() {
    * `global`.
    * 
* - * - * 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,8 +107,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of events that should be returned.  Acceptable
    * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -141,7 +116,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -150,12 +124,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -164,7 +135,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -173,15 +143,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; } } /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -190,15 +159,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.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 { @@ -207,12 +177,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms: <br>
@@ -232,7 +199,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -241,15 +207,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. A filter expression that filters resources listed in the
    * response. The expression takes the following forms: <br>
@@ -269,15 +234,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.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 { @@ -288,44 +254,30 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int VIEW_FIELD_NUMBER = 6; private int view_ = 0; /** - * - * *
    * Optional. Event fields to include in response.
    * 
* - * - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Optional. Event fields to include in response.
    * 
* - * - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.EventView getView() { - com.google.cloud.servicehealth.v1.EventView result = - com.google.cloud.servicehealth.v1.EventView.forNumber(view_); + @java.lang.Override public com.google.cloud.servicehealth.v1.EventView getView() { + com.google.cloud.servicehealth.v1.EventView result = com.google.cloud.servicehealth.v1.EventView.forNumber(view_); return result == null ? com.google.cloud.servicehealth.v1.EventView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,7 +289,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_); } @@ -366,7 +319,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -375,7 +329,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } if (view_ != com.google.cloud.servicehealth.v1.EventView.EVENT_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, view_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -385,18 +340,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.cloud.servicehealth.v1.ListEventsRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListEventsRequest other = - (com.google.cloud.servicehealth.v1.ListEventsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.servicehealth.v1.ListEventsRequest other = (com.google.cloud.servicehealth.v1.ListEventsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -425,127 +383,127 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.ListEventsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListEventsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } - /** Protobuf type {@code google.cloud.servicehealth.v1.ListEventsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.servicehealth.v1.ListEventsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListEventsRequest) com.google.cloud.servicehealth.v1.ListEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListEventsRequest.class, - com.google.cloud.servicehealth.v1.ListEventsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListEventsRequest.class, com.google.cloud.servicehealth.v1.ListEventsRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListEventsRequest.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(); @@ -559,9 +517,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; } @java.lang.Override @@ -580,11 +538,8 @@ public com.google.cloud.servicehealth.v1.ListEventsRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.ListEventsRequest buildPartial() { - com.google.cloud.servicehealth.v1.ListEventsRequest result = - new com.google.cloud.servicehealth.v1.ListEventsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.ListEventsRequest result = new com.google.cloud.servicehealth.v1.ListEventsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -612,39 +567,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListEventsRequest) other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListEventsRequest)other); } else { super.mergeFrom(other); return this; @@ -652,8 +606,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListEventsRequest other) { - if (other == com.google.cloud.servicehealth.v1.ListEventsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.servicehealth.v1.ListEventsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -701,43 +654,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 48: - { - view_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - 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 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: { + view_ = input.readEnum(); + 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) { @@ -747,13 +694,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -765,16 +709,14 @@ public Builder mergeFrom(
      * `global`.
      * 
* - * - * 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; @@ -783,8 +725,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -796,17 +736,16 @@ public java.lang.String getParent() {
      * `global`.
      * 
* - * - * 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 { @@ -814,8 +753,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -827,25 +764,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `global`.
      * 
* - * - * 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. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -857,10 +788,7 @@ public Builder setParent(java.lang.String value) {
      * `global`.
      * 
* - * - * 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() { @@ -870,8 +798,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -883,17 +809,13 @@ public Builder clearParent() {
      * `global`.
      * 
* - * - * 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; @@ -901,10 +823,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -914,7 +834,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -922,8 +841,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -933,7 +850,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -945,8 +861,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -956,7 +870,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -968,8 +881,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -978,13 +889,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.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; @@ -993,8 +904,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -1003,14 +912,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.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 { @@ -1018,8 +928,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -1028,22 +936,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -1052,7 +956,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1062,8 +965,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -1072,14 +973,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; @@ -1089,8 +988,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1110,13 +1007,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.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; @@ -1125,8 +1022,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1146,14 +1041,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.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 { @@ -1161,8 +1057,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1182,22 +1076,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1217,7 +1107,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1227,8 +1116,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1248,14 +1135,12 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; @@ -1265,33 +1150,22 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Optional. Event fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Optional. Event fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1302,35 +1176,24 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * Optional. Event fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventView getView() { - com.google.cloud.servicehealth.v1.EventView result = - com.google.cloud.servicehealth.v1.EventView.forNumber(view_); + com.google.cloud.servicehealth.v1.EventView result = com.google.cloud.servicehealth.v1.EventView.forNumber(view_); return result == null ? com.google.cloud.servicehealth.v1.EventView.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Event fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The view to set. * @return This builder for chaining. */ @@ -1344,16 +1207,11 @@ public Builder setView(com.google.cloud.servicehealth.v1.EventView value) { return this; } /** - * - * *
      * Optional. Event fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearView() { @@ -1362,9 +1220,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); } @@ -1374,12 +1232,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListEventsRequest) private static final com.google.cloud.servicehealth.v1.ListEventsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListEventsRequest(); } @@ -1388,27 +1246,27 @@ public static com.google.cloud.servicehealth.v1.ListEventsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1423,4 +1281,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.ListEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java similarity index 76% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java index bfe380dbadce..daf69c6c76fb 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListEventsRequestOrBuilder - extends +public interface ListEventsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListEventsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value using the form
    * `projects/{project_id}/locations/{location}/events`.
@@ -38,16 +20,11 @@ public interface ListEventsRequestOrBuilder
    * `global`.
    * 
* - * - * 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. Parent value using the form
    * `projects/{project_id}/locations/{location}/events`.
@@ -59,17 +36,13 @@ public interface ListEventsRequestOrBuilder
    * `global`.
    * 
* - * - * 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 maximum number of events that should be returned.  Acceptable
    * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -79,14 +52,11 @@ public interface ListEventsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -95,13 +65,10 @@ public interface ListEventsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -110,14 +77,12 @@ public interface ListEventsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms: <br>
@@ -137,13 +102,10 @@ public interface ListEventsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms: <br>
@@ -163,36 +125,26 @@ public interface ListEventsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Event fields to include in response.
    * 
* - * - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Optional. Event fields to include in response.
    * 
* - * - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ com.google.cloud.servicehealth.v1.EventView getView(); diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java similarity index 67% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java index 91c6e4cbfca2..e07aae634b9a 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java @@ -1,150 +1,113 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** Protobuf type {@code google.cloud.servicehealth.v1.ListEventsResponse} */ -public final class ListEventsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.servicehealth.v1.ListEventsResponse} + */ +public final class ListEventsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListEventsResponse) ListEventsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEventsResponse.newBuilder() to construct. private ListEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEventsResponse() { events_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + 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 ListEventsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListEventsResponse.class, - com.google.cloud.servicehealth.v1.ListEventsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListEventsResponse.class, com.google.cloud.servicehealth.v1.ListEventsResponse.Builder.class); } public static final int EVENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List events_; /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getEventsList() { return events_; } /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getEventsOrBuilderList() { return events_; } /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getEventsCount() { return events_.size(); } /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event getEvents(int index) { return events_.get(index); } /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder( + int index) { return events_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -154,7 +117,6 @@ public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(int i
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,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; } } /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -181,15 +142,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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,47 +160,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -246,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +224,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 < events_.size(); i++) { output.writeMessage(1, events_.get(i)); } @@ -294,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, events_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, events_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -315,17 +267,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.cloud.servicehealth.v1.ListEventsResponse)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListEventsResponse other = - (com.google.cloud.servicehealth.v1.ListEventsResponse) obj; + com.google.cloud.servicehealth.v1.ListEventsResponse other = (com.google.cloud.servicehealth.v1.ListEventsResponse) obj; - if (!getEventsList().equals(other.getEventsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getEventsList() + .equals(other.getEventsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,127 +307,127 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.ListEventsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } - /** Protobuf type {@code google.cloud.servicehealth.v1.ListEventsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.servicehealth.v1.ListEventsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListEventsResponse) com.google.cloud.servicehealth.v1.ListEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListEventsResponse.class, - com.google.cloud.servicehealth.v1.ListEventsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListEventsResponse.class, com.google.cloud.servicehealth.v1.ListEventsResponse.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListEventsResponse.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(); @@ -486,14 +440,15 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; } @java.lang.Override @@ -512,18 +467,14 @@ public com.google.cloud.servicehealth.v1.ListEventsResponse build() { @java.lang.Override public com.google.cloud.servicehealth.v1.ListEventsResponse buildPartial() { - com.google.cloud.servicehealth.v1.ListEventsResponse result = - new com.google.cloud.servicehealth.v1.ListEventsResponse(this); + com.google.cloud.servicehealth.v1.ListEventsResponse result = new com.google.cloud.servicehealth.v1.ListEventsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.servicehealth.v1.ListEventsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.ListEventsResponse result) { if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); @@ -550,39 +501,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.ListEventsResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.ListEventsResponse) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListEventsResponse) other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListEventsResponse)other); } else { super.mergeFrom(other); return this; @@ -590,8 +540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListEventsResponse other) { - if (other == com.google.cloud.servicehealth.v1.ListEventsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.servicehealth.v1.ListEventsResponse.getDefaultInstance()) return this; if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { @@ -610,10 +559,9 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListEventsResponse ot eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEventsFieldBuilder() - : null; + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } @@ -660,39 +608,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.servicehealth.v1.Event m = - input.readMessage( - com.google.cloud.servicehealth.v1.Event.parser(), extensionRegistry); - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(m); - } else { - eventsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.servicehealth.v1.Event m = + input.readMessage( + com.google.cloud.servicehealth.v1.Event.parser(), + extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(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) { @@ -702,35 +647,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List events_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.Event, - com.google.cloud.servicehealth.v1.Event.Builder, - com.google.cloud.servicehealth.v1.EventOrBuilder> - eventsBuilder_; + com.google.cloud.servicehealth.v1.Event, com.google.cloud.servicehealth.v1.Event.Builder, com.google.cloud.servicehealth.v1.EventOrBuilder> eventsBuilder_; /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { @@ -740,15 +676,11 @@ public java.util.List getEventsList() { } } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getEventsCount() { if (eventsBuilder_ == null) { @@ -758,15 +690,11 @@ public int getEventsCount() { } } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.Event getEvents(int index) { if (eventsBuilder_ == null) { @@ -776,17 +704,14 @@ public com.google.cloud.servicehealth.v1.Event getEvents(int index) { } } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEvents(int index, com.google.cloud.servicehealth.v1.Event value) { + public Builder setEvents( + int index, com.google.cloud.servicehealth.v1.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -800,15 +725,11 @@ public Builder setEvents(int index, com.google.cloud.servicehealth.v1.Event valu return this; } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEvents( int index, com.google.cloud.servicehealth.v1.Event.Builder builderForValue) { @@ -822,15 +743,11 @@ public Builder setEvents( return this; } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addEvents(com.google.cloud.servicehealth.v1.Event value) { if (eventsBuilder_ == null) { @@ -846,17 +763,14 @@ public Builder addEvents(com.google.cloud.servicehealth.v1.Event value) { return this; } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addEvents(int index, com.google.cloud.servicehealth.v1.Event value) { + public Builder addEvents( + int index, com.google.cloud.servicehealth.v1.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -870,17 +784,14 @@ public Builder addEvents(int index, com.google.cloud.servicehealth.v1.Event valu return this; } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addEvents(com.google.cloud.servicehealth.v1.Event.Builder builderForValue) { + public Builder addEvents( + com.google.cloud.servicehealth.v1.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); @@ -891,15 +802,11 @@ public Builder addEvents(com.google.cloud.servicehealth.v1.Event.Builder builder return this; } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addEvents( int index, com.google.cloud.servicehealth.v1.Event.Builder builderForValue) { @@ -913,21 +820,18 @@ public Builder addEvents( return this; } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); @@ -935,15 +839,11 @@ public Builder addAllEvents( return this; } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEvents() { if (eventsBuilder_ == null) { @@ -956,15 +856,11 @@ public Builder clearEvents() { return this; } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { @@ -977,50 +873,39 @@ public Builder removeEvents(int index) { return this; } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.Event.Builder getEventsBuilder(int index) { + public com.google.cloud.servicehealth.v1.Event.Builder getEventsBuilder( + int index) { return getEventsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder( + int index) { if (eventsBuilder_ == null) { - return events_.get(index); - } else { + return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getEventsOrBuilderList() { + public java.util.List + getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { @@ -1028,62 +913,49 @@ public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(int i } } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.Event.Builder addEventsBuilder() { - return getEventsFieldBuilder() - .addBuilder(com.google.cloud.servicehealth.v1.Event.getDefaultInstance()); + return getEventsFieldBuilder().addBuilder( + com.google.cloud.servicehealth.v1.Event.getDefaultInstance()); } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.Event.Builder addEventsBuilder(int index) { - return getEventsFieldBuilder() - .addBuilder(index, com.google.cloud.servicehealth.v1.Event.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.Event.Builder addEventsBuilder( + int index) { + return getEventsFieldBuilder().addBuilder( + index, com.google.cloud.servicehealth.v1.Event.getDefaultInstance()); } /** - * - * *
      * Output only. List of events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getEventsBuilderList() { + public java.util.List + getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.Event, - com.google.cloud.servicehealth.v1.Event.Builder, - com.google.cloud.servicehealth.v1.EventOrBuilder> + com.google.cloud.servicehealth.v1.Event, com.google.cloud.servicehealth.v1.Event.Builder, com.google.cloud.servicehealth.v1.EventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { - eventsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.Event, - com.google.cloud.servicehealth.v1.Event.Builder, - com.google.cloud.servicehealth.v1.EventOrBuilder>( - events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.Event, com.google.cloud.servicehealth.v1.Event.Builder, com.google.cloud.servicehealth.v1.EventOrBuilder>( + events_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); events_ = null; } return eventsBuilder_; @@ -1091,8 +963,6 @@ public java.util.List getEvents private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -1102,13 +972,13 @@ public java.util.List getEvents
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1117,8 +987,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -1128,14 +996,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1143,8 +1012,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -1154,22 +1021,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -1179,7 +1042,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1189,8 +1051,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -1200,14 +1060,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1217,7 +1075,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1225,43 +1082,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1269,37 +1118,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1307,21 +1150,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1329,58 +1168,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1388,9 +1219,9 @@ public Builder addUnreachableBytes(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); } @@ -1400,12 +1231,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListEventsResponse) private static final com.google.cloud.servicehealth.v1.ListEventsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListEventsResponse(); } @@ -1414,27 +1245,27 @@ public static com.google.cloud.servicehealth.v1.ListEventsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1449,4 +1280,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.ListEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java similarity index 63% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java index 32c723f80cd8..8c60081ec7a5 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java @@ -1,94 +1,58 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListEventsResponseOrBuilder - extends +public interface ListEventsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListEventsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getEventsList(); + java.util.List + getEventsList(); /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.servicehealth.v1.Event getEvents(int index); /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getEventsCount(); /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getEventsOrBuilderList(); /** - * - * *
    * Output only. List of events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(int index); + com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder( + int index); /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -98,13 +62,10 @@ public interface ListEventsResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -114,59 +75,49 @@ public interface ListEventsResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java similarity index 72% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java index 9f24951e96b3..5e410cf2d6d2 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java @@ -1,35 +1,21 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsRequest} */ -public final class ListOrganizationEventsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsRequest} + */ +public final class ListOrganizationEventsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) ListOrganizationEventsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListOrganizationEventsRequest.newBuilder() to construct. private ListOrganizationEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListOrganizationEventsRequest() { parent_ = ""; pageToken_ = ""; @@ -39,32 +25,28 @@ private ListOrganizationEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListOrganizationEventsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -78,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `global`.
    * 
* - * - * 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 +69,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. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -112,18 +90,17 @@ public java.lang.String getParent() {
    * `global`.
    * 
* - * - * 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 { @@ -134,8 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of events that should be returned.  Acceptable
    * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -145,7 +120,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -154,12 +128,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -171,7 +142,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -180,15 +150,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; } } /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -200,15 +169,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.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 { @@ -217,12 +187,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms:
@@ -243,7 +210,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -252,15 +218,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. A filter expression that filters resources listed in the
    * response. The expression takes the following forms:
@@ -281,15 +246,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.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 { @@ -300,46 +266,30 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int VIEW_FIELD_NUMBER = 6; private int view_ = 0; /** - * - * *
    * Optional. OrganizationEvent fields to include in response.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Optional. OrganizationEvent fields to include in response.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationEventView getView() { - com.google.cloud.servicehealth.v1.OrganizationEventView result = - com.google.cloud.servicehealth.v1.OrganizationEventView.forNumber(view_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEventView.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEventView getView() { + com.google.cloud.servicehealth.v1.OrganizationEventView result = com.google.cloud.servicehealth.v1.OrganizationEventView.forNumber(view_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEventView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,7 +301,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_); } @@ -364,10 +315,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } - if (view_ - != com.google.cloud.servicehealth.v1.OrganizationEventView - .ORGANIZATION_EVENT_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.servicehealth.v1.OrganizationEventView.ORGANIZATION_EVENT_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(6, view_); } getUnknownFields().writeTo(output); @@ -383,7 +331,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -391,11 +340,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } - if (view_ - != com.google.cloud.servicehealth.v1.OrganizationEventView - .ORGANIZATION_EVENT_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, view_); + if (view_ != com.google.cloud.servicehealth.v1.OrganizationEventView.ORGANIZATION_EVENT_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -405,18 +352,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.cloud.servicehealth.v1.ListOrganizationEventsRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest other = - (com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest other = (com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -445,128 +395,127 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest prototype) { + public static Builder newBuilder(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } - /** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) com.google.cloud.servicehealth.v1.ListOrganizationEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.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,14 +529,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.getDefaultInstance(); } @@ -602,17 +550,13 @@ public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest buildPartial() { - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest result = - new com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest result = new com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest result) { + private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -635,50 +579,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.cloud.servicehealth.v1.ListOrganizationEventsRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest other) { - if (other - == com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest other) { + if (other == com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -726,43 +666,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 48: - { - view_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - 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 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: { + view_ = input.readEnum(); + 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) { @@ -772,13 +706,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -792,16 +723,14 @@ public Builder mergeFrom(
      * `global`.
      * 
* - * - * 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; @@ -810,8 +739,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -825,17 +752,16 @@ public java.lang.String getParent() {
      * `global`.
      * 
* - * - * 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 { @@ -843,8 +769,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -858,25 +782,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `global`.
      * 
* - * - * 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. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -890,10 +808,7 @@ public Builder setParent(java.lang.String value) {
      * `global`.
      * 
* - * - * 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() { @@ -903,8 +818,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -918,17 +831,13 @@ public Builder clearParent() {
      * `global`.
      * 
* - * - * 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; @@ -936,10 +845,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -949,7 +856,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -957,8 +863,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -968,7 +872,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -980,8 +883,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -991,7 +892,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1003,8 +903,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -1016,13 +914,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.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; @@ -1031,8 +929,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -1044,14 +940,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.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 { @@ -1059,8 +956,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -1072,22 +967,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -1099,7 +990,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1109,8 +999,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -1122,14 +1010,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; @@ -1139,8 +1025,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1161,13 +1045,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.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; @@ -1176,8 +1060,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1198,14 +1080,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.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 { @@ -1213,8 +1096,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1235,22 +1116,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1271,7 +1148,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1281,8 +1157,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1303,14 +1177,12 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; @@ -1320,33 +1192,22 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1357,37 +1218,24 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEventView getView() { - com.google.cloud.servicehealth.v1.OrganizationEventView result = - com.google.cloud.servicehealth.v1.OrganizationEventView.forNumber(view_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEventView.UNRECOGNIZED - : result; + com.google.cloud.servicehealth.v1.OrganizationEventView result = com.google.cloud.servicehealth.v1.OrganizationEventView.forNumber(view_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEventView.UNRECOGNIZED : result; } /** - * - * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The view to set. * @return This builder for chaining. */ @@ -1401,16 +1249,11 @@ public Builder setView(com.google.cloud.servicehealth.v1.OrganizationEventView v return this; } /** - * - * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearView() { @@ -1419,9 +1262,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); } @@ -1431,43 +1274,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) - private static final com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest(); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest - getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrganizationEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListOrganizationEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1479,8 +1320,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java similarity index 78% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java index c2fcf03907da..9d563de9da6c 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListOrganizationEventsRequestOrBuilder - extends +public interface ListOrganizationEventsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -40,16 +22,11 @@ public interface ListOrganizationEventsRequestOrBuilder
    * `global`.
    * 
* - * - * 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. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -63,17 +40,13 @@ public interface ListOrganizationEventsRequestOrBuilder
    * `global`.
    * 
* - * - * 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 maximum number of events that should be returned.  Acceptable
    * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -83,14 +56,11 @@ public interface ListOrganizationEventsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -102,13 +72,10 @@ public interface ListOrganizationEventsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -120,14 +87,12 @@ public interface ListOrganizationEventsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms:
@@ -148,13 +113,10 @@ public interface ListOrganizationEventsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms:
@@ -175,36 +137,26 @@ public interface ListOrganizationEventsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. OrganizationEvent fields to include in response.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Optional. OrganizationEvent fields to include in response.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ com.google.cloud.servicehealth.v1.OrganizationEventView getView(); diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java similarity index 66% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java index 26c79f3fd22c..c4249708cf16 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java @@ -1,153 +1,113 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsResponse} */ -public final class ListOrganizationEventsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsResponse} + */ +public final class ListOrganizationEventsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) ListOrganizationEventsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListOrganizationEventsResponse.newBuilder() to construct. - private ListOrganizationEventsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListOrganizationEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListOrganizationEventsResponse() { organizationEvents_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + 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 ListOrganizationEventsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.Builder.class); } public static final int ORGANIZATION_EVENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List organizationEvents_; /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getOrganizationEventsList() { + public java.util.List getOrganizationEventsList() { return organizationEvents_; } /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getOrganizationEventsOrBuilderList() { return organizationEvents_; } /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getOrganizationEventsCount() { return organizationEvents_.size(); } /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvents(int index) { return organizationEvents_.get(index); } /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder - getOrganizationEventsOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEventsOrBuilder( + int index) { return organizationEvents_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -157,7 +117,6 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvents
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -166,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; } } /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -184,15 +142,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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,47 +160,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -249,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,7 +224,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 < organizationEvents_.size(); i++) { output.writeMessage(1, organizationEvents_.get(i)); } @@ -297,8 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < organizationEvents_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, organizationEvents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, organizationEvents_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -319,17 +267,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.cloud.servicehealth.v1.ListOrganizationEventsResponse)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse other = - (com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse) obj; + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse other = (com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse) obj; - if (!getOrganizationEventsList().equals(other.getOrganizationEventsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getOrganizationEventsList() + .equals(other.getOrganizationEventsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -357,128 +307,127 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse prototype) { + public static Builder newBuilder(com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } - /** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) com.google.cloud.servicehealth.v1.ListOrganizationEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.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(); @@ -491,19 +440,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.getDefaultInstance(); } @@ -518,18 +467,14 @@ public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse build() @java.lang.Override public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse buildPartial() { - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result = - new com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse(this); + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result = new com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result) { if (organizationEventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { organizationEvents_ = java.util.Collections.unmodifiableList(organizationEvents_); @@ -541,8 +486,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result) { + private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -557,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.cloud.servicehealth.v1.ListOrganizationEventsResponse) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse) other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse other) { - if (other - == com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse other) { + if (other == com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.getDefaultInstance()) return this; if (organizationEventsBuilder_ == null) { if (!other.organizationEvents_.isEmpty()) { if (organizationEvents_.isEmpty()) { @@ -619,10 +559,9 @@ public Builder mergeFrom( organizationEventsBuilder_ = null; organizationEvents_ = other.organizationEvents_; bitField0_ = (bitField0_ & ~0x00000001); - organizationEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOrganizationEventsFieldBuilder() - : null; + organizationEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOrganizationEventsFieldBuilder() : null; } else { organizationEventsBuilder_.addAllMessages(other.organizationEvents_); } @@ -669,40 +608,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.servicehealth.v1.OrganizationEvent m = - input.readMessage( - com.google.cloud.servicehealth.v1.OrganizationEvent.parser(), - extensionRegistry); - if (organizationEventsBuilder_ == null) { - ensureOrganizationEventsIsMutable(); - organizationEvents_.add(m); - } else { - organizationEventsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.servicehealth.v1.OrganizationEvent m = + input.readMessage( + com.google.cloud.servicehealth.v1.OrganizationEvent.parser(), + extensionRegistry); + if (organizationEventsBuilder_ == null) { + ensureOrganizationEventsIsMutable(); + organizationEvents_.add(m); + } else { + organizationEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(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) { @@ -712,40 +647,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - organizationEvents_ = java.util.Collections.emptyList(); - + private java.util.List organizationEvents_ = + java.util.Collections.emptyList(); private void ensureOrganizationEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - organizationEvents_ = - new java.util.ArrayList( - organizationEvents_); + organizationEvents_ = new java.util.ArrayList(organizationEvents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationEvent, - com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, - com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder> - organizationEventsBuilder_; + com.google.cloud.servicehealth.v1.OrganizationEvent, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder> organizationEventsBuilder_; /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getOrganizationEventsList() { + public java.util.List getOrganizationEventsList() { if (organizationEventsBuilder_ == null) { return java.util.Collections.unmodifiableList(organizationEvents_); } else { @@ -753,15 +676,11 @@ private void ensureOrganizationEventsIsMutable() { } } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getOrganizationEventsCount() { if (organizationEventsBuilder_ == null) { @@ -771,15 +690,11 @@ public int getOrganizationEventsCount() { } } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvents(int index) { if (organizationEventsBuilder_ == null) { @@ -789,15 +704,11 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvents } } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOrganizationEvents( int index, com.google.cloud.servicehealth.v1.OrganizationEvent value) { @@ -814,15 +725,11 @@ public Builder setOrganizationEvents( return this; } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOrganizationEvents( int index, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder builderForValue) { @@ -836,18 +743,13 @@ public Builder setOrganizationEvents( return this; } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addOrganizationEvents( - com.google.cloud.servicehealth.v1.OrganizationEvent value) { + public Builder addOrganizationEvents(com.google.cloud.servicehealth.v1.OrganizationEvent value) { if (organizationEventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -861,15 +763,11 @@ public Builder addOrganizationEvents( return this; } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOrganizationEvents( int index, com.google.cloud.servicehealth.v1.OrganizationEvent value) { @@ -886,15 +784,11 @@ public Builder addOrganizationEvents( return this; } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOrganizationEvents( com.google.cloud.servicehealth.v1.OrganizationEvent.Builder builderForValue) { @@ -908,15 +802,11 @@ public Builder addOrganizationEvents( return this; } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOrganizationEvents( int index, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder builderForValue) { @@ -930,21 +820,18 @@ public Builder addOrganizationEvents( return this; } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllOrganizationEvents( java.lang.Iterable values) { if (organizationEventsBuilder_ == null) { ensureOrganizationEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, organizationEvents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, organizationEvents_); onChanged(); } else { organizationEventsBuilder_.addAllMessages(values); @@ -952,15 +839,11 @@ public Builder addAllOrganizationEvents( return this; } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOrganizationEvents() { if (organizationEventsBuilder_ == null) { @@ -973,15 +856,11 @@ public Builder clearOrganizationEvents() { return this; } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeOrganizationEvents(int index) { if (organizationEventsBuilder_ == null) { @@ -994,52 +873,39 @@ public Builder removeOrganizationEvents(int index) { return this; } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder getOrganizationEventsBuilder( int index) { return getOrganizationEventsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder - getOrganizationEventsOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEventsOrBuilder( + int index) { if (organizationEventsBuilder_ == null) { - return organizationEvents_.get(index); - } else { + return organizationEvents_.get(index); } else { return organizationEventsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getOrganizationEventsOrBuilderList() { + public java.util.List + getOrganizationEventsOrBuilderList() { if (organizationEventsBuilder_ != null) { return organizationEventsBuilder_.getMessageOrBuilderList(); } else { @@ -1047,65 +913,45 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder getOrganizati } } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder - addOrganizationEventsBuilder() { - return getOrganizationEventsFieldBuilder() - .addBuilder(com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder addOrganizationEventsBuilder() { + return getOrganizationEventsFieldBuilder().addBuilder( + com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()); } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder addOrganizationEventsBuilder( int index) { - return getOrganizationEventsFieldBuilder() - .addBuilder( - index, com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()); + return getOrganizationEventsFieldBuilder().addBuilder( + index, com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()); } /** - * - * *
      * Output only. List of organization events affecting an organization.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getOrganizationEventsBuilderList() { + public java.util.List + getOrganizationEventsBuilderList() { return getOrganizationEventsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationEvent, - com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, - com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder> + com.google.cloud.servicehealth.v1.OrganizationEvent, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder> getOrganizationEventsFieldBuilder() { if (organizationEventsBuilder_ == null) { - organizationEventsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationEvent, - com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, - com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder>( + organizationEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.OrganizationEvent, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder>( organizationEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1117,8 +963,6 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder addOrganizati private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1128,13 +972,13 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder addOrganizati
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1143,8 +987,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1154,14 +996,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1169,8 +1012,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1180,22 +1021,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1205,7 +1042,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1215,8 +1051,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1226,14 +1060,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1243,7 +1075,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1251,43 +1082,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1295,37 +1118,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1333,21 +1150,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1355,58 +1168,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1414,9 +1219,9 @@ public Builder addUnreachableBytes(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); } @@ -1426,43 +1231,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) - private static final com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse(); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse - getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrganizationEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListOrganizationEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1474,8 +1277,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java similarity index 64% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java index f04842afd200..3beedbe021d4 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java @@ -1,95 +1,58 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListOrganizationEventsResponseOrBuilder - extends +public interface ListOrganizationEventsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getOrganizationEventsList(); + java.util.List + getOrganizationEventsList(); /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvents(int index); /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getOrganizationEventsCount(); /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getOrganizationEventsOrBuilderList(); /** - * - * *
    * Output only. List of organization events affecting an organization.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEventsOrBuilder( int index); /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -99,13 +62,10 @@ com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEven
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -115,59 +75,49 @@ com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEven
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java similarity index 74% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java index e40a1ec74e3e..04c5c040a461 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,25 +5,21 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * Message for requesting list of OrganizationImpacts
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsRequest} */ -public final class ListOrganizationImpactsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListOrganizationImpactsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) ListOrganizationImpactsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListOrganizationImpactsRequest.newBuilder() to construct. - private ListOrganizationImpactsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListOrganizationImpactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListOrganizationImpactsRequest() { parent_ = ""; pageToken_ = ""; @@ -47,32 +28,28 @@ private ListOrganizationImpactsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListOrganizationImpactsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -83,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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 @@ -95,15 +69,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. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -114,18 +87,17 @@ public java.lang.String getParent() {
    * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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 { @@ -136,8 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of events that should be returned. Acceptable
    * values are `1` to `100`, inclusive. The default value is `10`.
@@ -150,7 +120,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -159,12 +128,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -176,7 +142,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -185,15 +150,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; } } /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -205,15 +169,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.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 { @@ -222,12 +187,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression is in the form of `field:value` for checking if a
@@ -248,7 +210,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -257,15 +218,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. A filter expression that filters resources listed in the
    * response. The expression is in the form of `field:value` for checking if a
@@ -286,15 +246,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.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 { @@ -303,7 +264,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +275,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_); } @@ -341,7 +302,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -357,18 +319,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.cloud.servicehealth.v1.ListOrganizationImpactsRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest other = - (com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest other = (com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -394,136 +359,131 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest prototype) { + public static Builder newBuilder(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Message for requesting list of OrganizationImpacts
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.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(); @@ -536,14 +496,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.getDefaultInstance(); } @@ -558,17 +517,13 @@ public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest build() @java.lang.Override public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest buildPartial() { - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest result = - new com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest result = new com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest result) { + private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -588,50 +543,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.cloud.servicehealth.v1.ListOrganizationImpactsRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest other) { - if (other - == com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest other) { + if (other == com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -676,37 +627,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = 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 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = 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) { @@ -716,13 +662,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -733,16 +676,14 @@ public Builder mergeFrom(
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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; @@ -751,8 +692,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -763,17 +702,16 @@ public java.lang.String getParent() {
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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 { @@ -781,8 +719,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -793,25 +729,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -822,10 +752,7 @@ public Builder setParent(java.lang.String value) {
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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() { @@ -835,8 +762,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -847,17 +772,13 @@ public Builder clearParent() {
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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; @@ -865,10 +786,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of events that should be returned. Acceptable
      * values are `1` to `100`, inclusive. The default value is `10`.
@@ -881,7 +800,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -889,8 +807,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of events that should be returned. Acceptable
      * values are `1` to `100`, inclusive. The default value is `10`.
@@ -903,7 +819,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -915,8 +830,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of events that should be returned. Acceptable
      * values are `1` to `100`, inclusive. The default value is `10`.
@@ -929,7 +842,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -941,8 +853,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -954,13 +864,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.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; @@ -969,8 +879,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -982,14 +890,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.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 { @@ -997,8 +906,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -1010,22 +917,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -1037,7 +940,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1047,8 +949,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -1060,14 +960,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; @@ -1077,8 +975,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -1099,13 +995,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.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; @@ -1114,8 +1010,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -1136,14 +1030,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.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 { @@ -1151,8 +1046,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -1173,22 +1066,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -1209,7 +1098,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1219,8 +1107,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -1241,23 +1127,21 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.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_ |= 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); } @@ -1267,43 +1151,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) - private static final com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest(); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest - getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrganizationImpactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListOrganizationImpactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1315,8 +1197,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java similarity index 80% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java index cce1efb95967..2ab549adaab8 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListOrganizationImpactsRequestOrBuilder - extends +public interface ListOrganizationImpactsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -37,16 +19,11 @@ public interface ListOrganizationImpactsRequestOrBuilder
    * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -57,17 +34,13 @@ public interface ListOrganizationImpactsRequestOrBuilder
    * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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 maximum number of events that should be returned. Acceptable
    * values are `1` to `100`, inclusive. The default value is `10`.
@@ -80,14 +53,11 @@ public interface ListOrganizationImpactsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -99,13 +69,10 @@ public interface ListOrganizationImpactsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -117,14 +84,12 @@ public interface ListOrganizationImpactsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression is in the form of `field:value` for checking if a
@@ -145,13 +110,10 @@ public interface ListOrganizationImpactsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression is in the form of `field:value` for checking if a
@@ -172,8 +134,8 @@ public interface ListOrganizationImpactsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java similarity index 67% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java index a151469ba4b9..bbd5b0cceb4c 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java @@ -1,163 +1,123 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} */ -public final class ListOrganizationImpactsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} + */ +public final class ListOrganizationImpactsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) ListOrganizationImpactsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListOrganizationImpactsResponse.newBuilder() to construct. - private ListOrganizationImpactsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListOrganizationImpactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListOrganizationImpactsResponse() { organizationImpacts_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + 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 ListOrganizationImpactsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.Builder.class); } public static final int ORGANIZATION_IMPACTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List organizationImpacts_; /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getOrganizationImpactsList() { + public java.util.List getOrganizationImpactsList() { return organizationImpacts_; } /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getOrganizationImpactsOrBuilderList() { return organizationImpacts_; } /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getOrganizationImpactsCount() { return organizationImpacts_.size(); } /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpacts(int index) { return organizationImpacts_.get(index); } /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder - getOrganizationImpactsOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImpactsOrBuilder( + int index) { return organizationImpacts_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -167,7 +127,6 @@ public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpac
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -176,15 +135,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; } } /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -194,15 +152,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -211,47 +170,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -259,23 +209,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,7 +234,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 < organizationImpacts_.size(); i++) { output.writeMessage(1, organizationImpacts_.get(i)); } @@ -307,8 +255,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < organizationImpacts_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, organizationImpacts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, organizationImpacts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -329,17 +277,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.cloud.servicehealth.v1.ListOrganizationImpactsResponse)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse other = - (com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) obj; + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse other = (com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) obj; - if (!getOrganizationImpactsList().equals(other.getOrganizationImpactsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getOrganizationImpactsList() + .equals(other.getOrganizationImpactsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,130 +317,127 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse - 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse prototype) { + public static Builder newBuilder(com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } - /** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.Builder.class); } - // Construct using - // com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.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(); @@ -503,19 +450,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.getDefaultInstance(); } @@ -530,18 +477,14 @@ public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse build() @java.lang.Override public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse buildPartial() { - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result = - new com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse(this); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result = new com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result) { if (organizationImpactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { organizationImpacts_ = java.util.Collections.unmodifiableList(organizationImpacts_); @@ -553,8 +496,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result) { + private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -569,50 +511,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.cloud.servicehealth.v1.ListOrganizationImpactsResponse) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse other) { - if (other - == com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse other) { + if (other == com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.getDefaultInstance()) return this; if (organizationImpactsBuilder_ == null) { if (!other.organizationImpacts_.isEmpty()) { if (organizationImpacts_.isEmpty()) { @@ -631,10 +569,9 @@ public Builder mergeFrom( organizationImpactsBuilder_ = null; organizationImpacts_ = other.organizationImpacts_; bitField0_ = (bitField0_ & ~0x00000001); - organizationImpactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOrganizationImpactsFieldBuilder() - : null; + organizationImpactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOrganizationImpactsFieldBuilder() : null; } else { organizationImpactsBuilder_.addAllMessages(other.organizationImpacts_); } @@ -681,40 +618,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.servicehealth.v1.OrganizationImpact m = - input.readMessage( - com.google.cloud.servicehealth.v1.OrganizationImpact.parser(), - extensionRegistry); - if (organizationImpactsBuilder_ == null) { - ensureOrganizationImpactsIsMutable(); - organizationImpacts_.add(m); - } else { - organizationImpactsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.servicehealth.v1.OrganizationImpact m = + input.readMessage( + com.google.cloud.servicehealth.v1.OrganizationImpact.parser(), + extensionRegistry); + if (organizationImpactsBuilder_ == null) { + ensureOrganizationImpactsIsMutable(); + organizationImpacts_.add(m); + } else { + organizationImpactsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(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) { @@ -724,42 +657,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - organizationImpacts_ = java.util.Collections.emptyList(); - + private java.util.List organizationImpacts_ = + java.util.Collections.emptyList(); private void ensureOrganizationImpactsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - organizationImpacts_ = - new java.util.ArrayList( - organizationImpacts_); + organizationImpacts_ = new java.util.ArrayList(organizationImpacts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationImpact, - com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, - com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder> - organizationImpactsBuilder_; + com.google.cloud.servicehealth.v1.OrganizationImpact, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder> organizationImpactsBuilder_; /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getOrganizationImpactsList() { + public java.util.List getOrganizationImpactsList() { if (organizationImpactsBuilder_ == null) { return java.util.Collections.unmodifiableList(organizationImpacts_); } else { @@ -767,17 +688,13 @@ private void ensureOrganizationImpactsIsMutable() { } } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getOrganizationImpactsCount() { if (organizationImpactsBuilder_ == null) { @@ -787,17 +704,13 @@ public int getOrganizationImpactsCount() { } } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpacts(int index) { if (organizationImpactsBuilder_ == null) { @@ -807,17 +720,13 @@ public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpac } } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOrganizationImpacts( int index, com.google.cloud.servicehealth.v1.OrganizationImpact value) { @@ -834,17 +743,13 @@ public Builder setOrganizationImpacts( return this; } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOrganizationImpacts( int index, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder builderForValue) { @@ -858,20 +763,15 @@ public Builder setOrganizationImpacts( return this; } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addOrganizationImpacts( - com.google.cloud.servicehealth.v1.OrganizationImpact value) { + public Builder addOrganizationImpacts(com.google.cloud.servicehealth.v1.OrganizationImpact value) { if (organizationImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,17 +785,13 @@ public Builder addOrganizationImpacts( return this; } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOrganizationImpacts( int index, com.google.cloud.servicehealth.v1.OrganizationImpact value) { @@ -912,17 +808,13 @@ public Builder addOrganizationImpacts( return this; } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOrganizationImpacts( com.google.cloud.servicehealth.v1.OrganizationImpact.Builder builderForValue) { @@ -936,17 +828,13 @@ public Builder addOrganizationImpacts( return this; } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOrganizationImpacts( int index, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder builderForValue) { @@ -960,23 +848,20 @@ public Builder addOrganizationImpacts( return this; } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllOrganizationImpacts( java.lang.Iterable values) { if (organizationImpactsBuilder_ == null) { ensureOrganizationImpactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, organizationImpacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, organizationImpacts_); onChanged(); } else { organizationImpactsBuilder_.addAllMessages(values); @@ -984,17 +869,13 @@ public Builder addAllOrganizationImpacts( return this; } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOrganizationImpacts() { if (organizationImpactsBuilder_ == null) { @@ -1007,17 +888,13 @@ public Builder clearOrganizationImpacts() { return this; } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeOrganizationImpacts(int index) { if (organizationImpactsBuilder_ == null) { @@ -1030,58 +907,45 @@ public Builder removeOrganizationImpacts(int index) { return this; } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder - getOrganizationImpactsBuilder(int index) { + public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder getOrganizationImpactsBuilder( + int index) { return getOrganizationImpactsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder - getOrganizationImpactsOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImpactsOrBuilder( + int index) { if (organizationImpactsBuilder_ == null) { - return organizationImpacts_.get(index); - } else { + return organizationImpacts_.get(index); } else { return organizationImpactsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getOrganizationImpactsOrBuilderList() { + public java.util.List + getOrganizationImpactsOrBuilderList() { if (organizationImpactsBuilder_ != null) { return organizationImpactsBuilder_.getMessageOrBuilderList(); } else { @@ -1089,71 +953,51 @@ public Builder removeOrganizationImpacts(int index) { } } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder - addOrganizationImpactsBuilder() { - return getOrganizationImpactsFieldBuilder() - .addBuilder(com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder addOrganizationImpactsBuilder() { + return getOrganizationImpactsFieldBuilder().addBuilder( + com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()); } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder - addOrganizationImpactsBuilder(int index) { - return getOrganizationImpactsFieldBuilder() - .addBuilder( - index, com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder addOrganizationImpactsBuilder( + int index) { + return getOrganizationImpactsFieldBuilder().addBuilder( + index, com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()); } /** - * - * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getOrganizationImpactsBuilderList() { + public java.util.List + getOrganizationImpactsBuilderList() { return getOrganizationImpactsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationImpact, - com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, - com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder> + com.google.cloud.servicehealth.v1.OrganizationImpact, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder> getOrganizationImpactsFieldBuilder() { if (organizationImpactsBuilder_ == null) { - organizationImpactsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationImpact, - com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, - com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder>( + organizationImpactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.OrganizationImpact, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder>( organizationImpacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1165,8 +1009,6 @@ public Builder removeOrganizationImpacts(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1176,13 +1018,13 @@ public Builder removeOrganizationImpacts(int index) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1191,8 +1033,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1202,14 +1042,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1217,8 +1058,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1228,22 +1067,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1253,7 +1088,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1263,8 +1097,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1274,14 +1106,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1291,7 +1121,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1299,43 +1128,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1343,37 +1164,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1381,21 +1196,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1403,58 +1214,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1462,9 +1265,9 @@ public Builder addUnreachableBytes(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); } @@ -1474,43 +1277,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) - private static final com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse(); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse - getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrganizationImpactsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListOrganizationImpactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1522,8 +1323,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse - getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java similarity index 68% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java index 5c93eabe9b0c..bf8de80b40d8 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java @@ -1,105 +1,68 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListOrganizationImpactsResponseOrBuilder - extends +public interface ListOrganizationImpactsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getOrganizationImpactsList(); + java.util.List + getOrganizationImpactsList(); /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpacts(int index); /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getOrganizationImpactsCount(); /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getOrganizationImpactsOrBuilderList(); /** - * - * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImpactsOrBuilder( int index); /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -109,13 +72,10 @@ com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImp
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -125,59 +85,49 @@ com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImp
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java similarity index 66% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java index f059321ecb74..04159d4a082f 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,62 +5,54 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * Represents the locations impacted by the event.
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Location} */ -public final class Location extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Location extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.Location) LocationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Location() { locationName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Location(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Location.class, - com.google.cloud.servicehealth.v1.Location.Builder.class); + com.google.cloud.servicehealth.v1.Location.class, com.google.cloud.servicehealth.v1.Location.Builder.class); } public static final int LOCATION_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object locationName_ = ""; /** - * - * *
    * Location impacted by the event. Example: `"us-central1"`
    * 
* * string location_name = 1; - * * @return The locationName. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getLocationName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationName_ = s; return s; } } /** - * - * *
    * Location impacted by the event. Example: `"us-central1"`
    * 
* * string location_name = 1; - * * @return The bytes for locationName. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationNameBytes() { + public com.google.protobuf.ByteString + getLocationNameBytes() { java.lang.Object ref = locationName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locationName_ = b; return b; } else { @@ -115,7 +92,6 @@ public com.google.protobuf.ByteString getLocationNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +103,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(locationName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, locationName_); } @@ -151,15 +128,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.cloud.servicehealth.v1.Location)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.Location other = - (com.google.cloud.servicehealth.v1.Location) obj; + com.google.cloud.servicehealth.v1.Location other = (com.google.cloud.servicehealth.v1.Location) obj; - if (!getLocationName().equals(other.getLocationName())) return false; + if (!getLocationName() + .equals(other.getLocationName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,136 +155,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.Location parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.Location parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Location parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.Location parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 locations impacted by the event.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Location} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.Location) com.google.cloud.servicehealth.v1.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Location.class, - com.google.cloud.servicehealth.v1.Location.Builder.class); + com.google.cloud.servicehealth.v1.Location.class, com.google.cloud.servicehealth.v1.Location.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.Location.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(); @@ -317,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_descriptor; } @java.lang.Override @@ -338,11 +311,8 @@ public com.google.cloud.servicehealth.v1.Location build() { @java.lang.Override public com.google.cloud.servicehealth.v1.Location buildPartial() { - com.google.cloud.servicehealth.v1.Location result = - new com.google.cloud.servicehealth.v1.Location(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.Location result = new com.google.cloud.servicehealth.v1.Location(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -358,39 +328,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location) { - return mergeFrom((com.google.cloud.servicehealth.v1.Location) other); + return mergeFrom((com.google.cloud.servicehealth.v1.Location)other); } else { super.mergeFrom(other); return this; @@ -430,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - locationName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + locationName_ = 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) { @@ -452,25 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object locationName_ = ""; /** - * - * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; - * * @return The locationName. */ public java.lang.String getLocationName() { java.lang.Object ref = locationName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationName_ = s; return s; @@ -479,21 +443,20 @@ public java.lang.String getLocationName() { } } /** - * - * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; - * * @return The bytes for locationName. */ - public com.google.protobuf.ByteString getLocationNameBytes() { + public com.google.protobuf.ByteString + getLocationNameBytes() { java.lang.Object ref = locationName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locationName_ = b; return b; } else { @@ -501,35 +464,28 @@ public com.google.protobuf.ByteString getLocationNameBytes() { } } /** - * - * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; - * * @param value The locationName to set. * @return This builder for chaining. */ - public Builder setLocationName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } locationName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; - * * @return This builder for chaining. */ public Builder clearLocationName() { @@ -539,30 +495,26 @@ public Builder clearLocationName() { return this; } /** - * - * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; - * * @param value The bytes for locationName to set. * @return This builder for chaining. */ - public Builder setLocationNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locationName_ = 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); } @@ -572,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.Location) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.Location) private static final com.google.cloud.servicehealth.v1.Location DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.Location(); } @@ -586,27 +538,27 @@ public static com.google.cloud.servicehealth.v1.Location getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -621,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java similarity index 99% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java index 30d9fc29aba0..6b99145d3ef3 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java similarity index 50% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java index a59dd1b071b0..2132fd72d438 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java @@ -1,51 +1,30 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface LocationOrBuilder - extends +public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.Location) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Location impacted by the event. Example: `"us-central1"`
    * 
* * string location_name = 1; - * * @return The locationName. */ java.lang.String getLocationName(); /** - * - * *
    * Location impacted by the event. Example: `"us-central1"`
    * 
* * string location_name = 1; - * * @return The bytes for locationName. */ - com.google.protobuf.ByteString getLocationNameBytes(); + com.google.protobuf.ByteString + getLocationNameBytes(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java similarity index 66% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java index 4005da7ac6cc..c30b8f8af3a0 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,8 +5,6 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * Represents service health events that may affect Google Cloud products used
  * across the organization. It is a read-only view and does not allow any
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.servicehealth.v1.OrganizationEvent}
  */
-public final class OrganizationEvent extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class OrganizationEvent extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.OrganizationEvent)
     OrganizationEventOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use OrganizationEvent.newBuilder() to construct.
   private OrganizationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private OrganizationEvent() {
     name_ = "";
     title_ = "";
@@ -55,28 +37,25 @@ private OrganizationEvent() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new OrganizationEvent();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto
-        .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto
-        .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable
+    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.servicehealth.v1.OrganizationEvent.class,
-            com.google.cloud.servicehealth.v1.OrganizationEvent.Builder.class);
+            com.google.cloud.servicehealth.v1.OrganizationEvent.class, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The category of the event. This enum lists all possible categories of
    * event.
@@ -84,10 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEvent.EventCategory}
    */
-  public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum {
+  public enum EventCategory
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified category.
      * 
@@ -96,8 +74,6 @@ public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum { */ EVENT_CATEGORY_UNSPECIFIED(0), /** - * - * *
      * Event category for service outage or degradation.
      * 
@@ -109,8 +85,6 @@ public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified category.
      * 
@@ -119,8 +93,6 @@ public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVENT_CATEGORY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Event category for service outage or degradation.
      * 
@@ -129,6 +101,7 @@ public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INCIDENT_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -153,49 +126,48 @@ public static EventCategory valueOf(int value) { */ public static EventCategory forNumber(int value) { switch (value) { - case 0: - return EVENT_CATEGORY_UNSPECIFIED; - case 2: - return INCIDENT; - default: - return null; + case 0: return EVENT_CATEGORY_UNSPECIFIED; + case 2: return INCIDENT; + 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< + EventCategory> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventCategory findValueByNumber(int number) { + return EventCategory.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventCategory findValueByNumber(int number) { - return EventCategory.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.cloud.servicehealth.v1.OrganizationEvent.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor().getEnumTypes().get(0); } private static final EventCategory[] VALUES = values(); - public static EventCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventCategory 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; @@ -213,8 +185,6 @@ private EventCategory(int value) { } /** - * - * *
    * The detailed category of an event. Contains all possible states for all
    * event categories.
@@ -222,10 +192,9 @@ private EventCategory(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory}
    */
-  public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum {
+  public enum DetailedCategory
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified detailed category.
      * 
@@ -234,8 +203,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum */ DETAILED_CATEGORY_UNSPECIFIED(0), /** - * - * *
      * Indicates an event with category INCIDENT has a confirmed impact to at
      * least one Google Cloud product.
@@ -245,8 +212,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum
      */
     CONFIRMED_INCIDENT(1),
     /**
-     *
-     *
      * 
      * Indicates an event with category INCIDENT is under investigation to
      * determine if it has a confirmed impact on any Google Cloud products.
@@ -259,8 +224,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified detailed category.
      * 
@@ -269,8 +232,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum */ public static final int DETAILED_CATEGORY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates an event with category INCIDENT has a confirmed impact to at
      * least one Google Cloud product.
@@ -280,8 +241,6 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int CONFIRMED_INCIDENT_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates an event with category INCIDENT is under investigation to
      * determine if it has a confirmed impact on any Google Cloud products.
@@ -291,6 +250,7 @@ public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int EMERGING_INCIDENT_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -315,45 +275,40 @@ public static DetailedCategory valueOf(int value) {
      */
     public static DetailedCategory forNumber(int value) {
       switch (value) {
-        case 0:
-          return DETAILED_CATEGORY_UNSPECIFIED;
-        case 1:
-          return CONFIRMED_INCIDENT;
-        case 2:
-          return EMERGING_INCIDENT;
-        default:
-          return null;
+        case 0: return DETAILED_CATEGORY_UNSPECIFIED;
+        case 1: return CONFIRMED_INCIDENT;
+        case 2: return EMERGING_INCIDENT;
+        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<
+        DetailedCategory> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public DetailedCategory findValueByNumber(int number) {
+              return DetailedCategory.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public DetailedCategory findValueByNumber(int number) {
-                return DetailedCategory.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.cloud.servicehealth.v1.OrganizationEvent.getDescriptor()
-          .getEnumTypes()
-          .get(1);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final DetailedCategory[] VALUES = values();
@@ -361,7 +316,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static DetailedCategory 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;
@@ -379,8 +335,6 @@ private DetailedCategory(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The state of the organization event. This enum lists all possible states of
    * event.
@@ -388,10 +342,9 @@ private DetailedCategory(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEvent.State}
    */
-  public enum State implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified state.
      * 
@@ -400,8 +353,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Event is actively affecting a Google Cloud product and will continue to
      * receive updates.
@@ -411,8 +362,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ACTIVE(1),
     /**
-     *
-     *
      * 
      * Event is no longer affecting the Google Cloud product or has been merged
      * with another event.
@@ -425,8 +374,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified state.
      * 
@@ -435,8 +382,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Event is actively affecting a Google Cloud product and will continue to
      * receive updates.
@@ -446,8 +391,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ACTIVE_VALUE = 1;
     /**
-     *
-     *
      * 
      * Event is no longer affecting the Google Cloud product or has been merged
      * with another event.
@@ -457,6 +400,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CLOSED_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -481,51 +425,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return ACTIVE;
-        case 2:
-          return CLOSED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return ACTIVE;
+        case 2: return CLOSED;
+        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() {
-      return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor()
-          .getEnumTypes()
-          .get(2);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor().getEnumTypes().get(2);
     }
 
     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;
@@ -543,8 +485,6 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The detailed state of the incident. This enum lists all possible detailed
    * states of an incident.
@@ -552,10 +492,9 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEvent.DetailedState}
    */
-  public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
+  public enum DetailedState
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified detail state.
      * 
@@ -564,8 +503,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum { */ DETAILED_STATE_UNSPECIFIED(0), /** - * - * *
      * Google engineers are actively investigating the incident to determine the
      * impact.
@@ -575,8 +512,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EMERGING(1),
     /**
-     *
-     *
      * 
      * The incident is confirmed and impacting at least one Google Cloud
      * product. Ongoing status updates will be provided until it is resolved.
@@ -586,8 +521,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     CONFIRMED(2),
     /**
-     *
-     *
      * 
      * The incident is no longer affecting any Google Cloud product, and there
      * will be no further updates.
@@ -597,8 +530,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESOLVED(3),
     /**
-     *
-     *
      * 
      * The incident was merged into a parent event. All further updates will be
      * published to the parent only. The `parent_event` contains the name of the
@@ -609,22 +540,24 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     MERGED(4),
     /**
+     * 
+     * The incident was automatically closed because of the following reasons:
      *
+     *  * The impact of the incident could not be confirmed.
+     *  * The incident was intermittent or resolved itself.
      *
-     * 
-     * The incident was automatically closed because the issues couldn’t be
-     * confirmed or is no longer impacting Google Cloud Products and/or
-     * Locations.
+     *  The incident does not have a resolution because no action or
+     *  investigation happened. If it is intermittent, the incident may reopen.
      * 
* * AUTO_CLOSED = 9; */ AUTO_CLOSED(9), /** - * - * *
-     * The incident was verified as non-impactful. No further action required.
+     * Upon investigation, Google engineers concluded that the incident is not
+     * affecting a Google Cloud product. This state can change if the incident
+     * is reviewed again.
      * 
* * FALSE_POSITIVE = 10; @@ -634,8 +567,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified detail state.
      * 
@@ -644,8 +575,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DETAILED_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Google engineers are actively investigating the incident to determine the
      * impact.
@@ -655,8 +584,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EMERGING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The incident is confirmed and impacting at least one Google Cloud
      * product. Ongoing status updates will be provided until it is resolved.
@@ -666,8 +593,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CONFIRMED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The incident is no longer affecting any Google Cloud product, and there
      * will be no further updates.
@@ -677,8 +602,6 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESOLVED_VALUE = 3;
     /**
-     *
-     *
      * 
      * The incident was merged into a parent event. All further updates will be
      * published to the parent only. The `parent_event` contains the name of the
@@ -689,28 +612,31 @@ public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MERGED_VALUE = 4;
     /**
+     * 
+     * The incident was automatically closed because of the following reasons:
      *
+     *  * The impact of the incident could not be confirmed.
+     *  * The incident was intermittent or resolved itself.
      *
-     * 
-     * The incident was automatically closed because the issues couldn’t be
-     * confirmed or is no longer impacting Google Cloud Products and/or
-     * Locations.
+     *  The incident does not have a resolution because no action or
+     *  investigation happened. If it is intermittent, the incident may reopen.
      * 
* * AUTO_CLOSED = 9; */ public static final int AUTO_CLOSED_VALUE = 9; /** - * - * *
-     * The incident was verified as non-impactful. No further action required.
+     * Upon investigation, Google engineers concluded that the incident is not
+     * affecting a Google Cloud product. This state can change if the incident
+     * is reviewed again.
      * 
* * FALSE_POSITIVE = 10; */ public static final int FALSE_POSITIVE_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -735,59 +661,53 @@ public static DetailedState valueOf(int value) { */ public static DetailedState forNumber(int value) { switch (value) { - case 0: - return DETAILED_STATE_UNSPECIFIED; - case 1: - return EMERGING; - case 2: - return CONFIRMED; - case 3: - return RESOLVED; - case 4: - return MERGED; - case 9: - return AUTO_CLOSED; - case 10: - return FALSE_POSITIVE; - default: - return null; + case 0: return DETAILED_STATE_UNSPECIFIED; + case 1: return EMERGING; + case 2: return CONFIRMED; + case 3: return RESOLVED; + case 4: return MERGED; + case 9: return AUTO_CLOSED; + case 10: return FALSE_POSITIVE; + 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< + DetailedState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DetailedState findValueByNumber(int number) { + return DetailedState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DetailedState findValueByNumber(int number) { - return DetailedState.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.cloud.servicehealth.v1.OrganizationEvent.getDescriptor() - .getEnumTypes() - .get(3); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor().getEnumTypes().get(3); } private static final DetailedState[] VALUES = values(); - public static DetailedState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DetailedState 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; @@ -806,12 +726,9 @@ private DetailedState(int value) { private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including organization ID and location using the form
@@ -823,10 +740,7 @@ private DetailedState(int value) {
    * `event_id` - Organization event ID to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return The name. */ @java.lang.Override @@ -835,15 +749,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. Identifier. Name of the event. Unique name of the event in
    * this scope including organization ID and location using the form
@@ -855,18 +768,17 @@ public java.lang.String getName() {
    * `event_id` - Organization event ID to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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 { @@ -875,18 +787,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TITLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** - * - * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The title. */ @java.lang.Override @@ -895,29 +803,29 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** - * - * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -926,18 +834,14 @@ public com.google.protobuf.ByteString getTitleBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ @java.lang.Override @@ -946,29 +850,29 @@ 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; } } /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -979,249 +883,166 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CATEGORY_FIELD_NUMBER = 4; private int category_ = 0; /** - * - * *
    * Output only. The category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for category. */ - @java.lang.Override - public int getCategoryValue() { + @java.lang.Override public int getCategoryValue() { return category_; } /** - * - * *
    * Output only. The category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The category. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory getCategory() { - com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory result = - com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.forNumber(category_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory getCategory() { + com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory result = com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.forNumber(category_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.UNRECOGNIZED : result; } public static final int DETAILED_CATEGORY_FIELD_NUMBER = 17; private int detailedCategory_ = 0; /** - * - * *
    * Output only. The detailed category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedCategory. */ - @java.lang.Override - public int getDetailedCategoryValue() { + @java.lang.Override public int getDetailedCategoryValue() { return detailedCategory_; } /** - * - * *
    * Output only. The detailed category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedCategory. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory - getDetailedCategory() { - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory result = - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.forNumber( - detailedCategory_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory getDetailedCategory() { + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory result = com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.forNumber(detailedCategory_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.UNRECOGNIZED : result; } public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** - * - * *
    * Output only. The current state of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current state of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationEvent.State getState() { - com.google.cloud.servicehealth.v1.OrganizationEvent.State result = - com.google.cloud.servicehealth.v1.OrganizationEvent.State.forNumber(state_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEvent.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.State getState() { + com.google.cloud.servicehealth.v1.OrganizationEvent.State result = com.google.cloud.servicehealth.v1.OrganizationEvent.State.forNumber(state_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.State.UNRECOGNIZED : result; } public static final int DETAILED_STATE_FIELD_NUMBER = 16; private int detailedState_ = 0; /** - * - * *
    * Output only. The current detailed state of the incident.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedState. */ - @java.lang.Override - public int getDetailedStateValue() { + @java.lang.Override public int getDetailedStateValue() { return detailedState_; } /** - * - * *
    * Output only. The current detailed state of the incident.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedState. */ - @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState getDetailedState() { - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState result = - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.forNumber(detailedState_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState getDetailedState() { + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState result = com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.forNumber(detailedState_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.UNRECOGNIZED : result; } public static final int EVENT_IMPACTS_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private java.util.List eventImpacts_; /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getEventImpactsList() { return eventImpacts_; } /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getEventImpactsOrBuilderList() { return eventImpacts_; } /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getEventImpactsCount() { return eventImpacts_.size(); } /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) { return eventImpacts_.get(index); } /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( @@ -1230,98 +1051,75 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB } public static final int UPDATES_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private java.util.List updates_; /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getUpdatesList() { return updates_; } /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getUpdatesOrBuilderList() { return updates_; } /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getUpdatesCount() { return updates_.size(); } /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { return updates_.get(index); } /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( + int index) { return updates_.get(index); } public static final int PARENT_EVENT_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object parentEvent_ = ""; /** - * - * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -1329,7 +1127,6 @@ public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilde
    * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parentEvent. */ @java.lang.Override @@ -1338,15 +1135,14 @@ public java.lang.String getParentEvent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentEvent_ = s; return s; } } /** - * - * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -1354,15 +1150,16 @@ public java.lang.String getParentEvent() {
    * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parentEvent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentEventBytes() { + public com.google.protobuf.ByteString + getParentEventBytes() { java.lang.Object ref = parentEvent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentEvent_ = b; return b; } else { @@ -1373,15 +1170,11 @@ public com.google.protobuf.ByteString getParentEventBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1389,15 +1182,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1405,14 +1194,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1422,15 +1208,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -1438,15 +1220,11 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -1454,14 +1232,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -1471,15 +1246,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -1487,15 +1258,11 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -1503,14 +1270,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1520,17 +1284,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int NEXT_UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp nextUpdateTime_; /** - * - * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the nextUpdateTime field is set. */ @java.lang.Override @@ -1538,46 +1297,32 @@ public boolean hasNextUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The nextUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextUpdateTime() { - return nextUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextUpdateTime_; + return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; } /** - * - * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder() { - return nextUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextUpdateTime_; + return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1589,7 +1334,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_); } @@ -1599,15 +1345,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } - if (category_ - != com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory - .EVENT_CATEGORY_UNSPECIFIED - .getNumber()) { + if (category_ != com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.EVENT_CATEGORY_UNSPECIFIED.getNumber()) { output.writeEnum(4, category_); } - if (state_ - != com.google.cloud.servicehealth.v1.OrganizationEvent.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.servicehealth.v1.OrganizationEvent.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } for (int i = 0; i < updates_.size(); i++) { @@ -1631,16 +1372,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < eventImpacts_.size(); i++) { output.writeMessage(15, eventImpacts_.get(i)); } - if (detailedState_ - != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState - .DETAILED_STATE_UNSPECIFIED - .getNumber()) { + if (detailedState_ != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.DETAILED_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(16, detailedState_); } - if (detailedCategory_ - != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory - .DETAILED_CATEGORY_UNSPECIFIED - .getNumber()) { + if (detailedCategory_ != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED.getNumber()) { output.writeEnum(17, detailedCategory_); } getUnknownFields().writeTo(output); @@ -1661,49 +1396,48 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } - if (category_ - != com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory - .EVENT_CATEGORY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, category_); + if (category_ != com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.EVENT_CATEGORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, category_); } - if (state_ - != com.google.cloud.servicehealth.v1.OrganizationEvent.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + if (state_ != com.google.cloud.servicehealth.v1.OrganizationEvent.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } for (int i = 0; i < updates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, updates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, updates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEvent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, parentEvent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getUpdateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getStartTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getEndTime()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNextUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getNextUpdateTime()); } for (int i = 0; i < eventImpacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, eventImpacts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, eventImpacts_.get(i)); } - if (detailedState_ - != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState - .DETAILED_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, detailedState_); + if (detailedState_ != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.DETAILED_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(16, detailedState_); } - if (detailedCategory_ - != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory - .DETAILED_CATEGORY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, detailedCategory_); + if (detailedCategory_ != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, detailedCategory_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1713,39 +1447,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.servicehealth.v1.OrganizationEvent)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.OrganizationEvent other = - (com.google.cloud.servicehealth.v1.OrganizationEvent) obj; + com.google.cloud.servicehealth.v1.OrganizationEvent other = (com.google.cloud.servicehealth.v1.OrganizationEvent) obj; - if (!getName().equals(other.getName())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (category_ != other.category_) return false; if (detailedCategory_ != other.detailedCategory_) return false; if (state_ != other.state_) return false; if (detailedState_ != other.detailedState_) return false; - if (!getEventImpactsList().equals(other.getEventImpactsList())) return false; - if (!getUpdatesList().equals(other.getUpdatesList())) return false; - if (!getParentEvent().equals(other.getParentEvent())) return false; + if (!getEventImpactsList() + .equals(other.getEventImpactsList())) return false; + if (!getUpdatesList() + .equals(other.getUpdatesList())) return false; + if (!getParentEvent() + .equals(other.getParentEvent())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) 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 (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (hasNextUpdateTime() != other.hasNextUpdateTime()) return false; if (hasNextUpdateTime()) { - if (!getNextUpdateTime().equals(other.getNextUpdateTime())) return false; + if (!getNextUpdateTime() + .equals(other.getNextUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1804,103 +1547,98 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.OrganizationEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.OrganizationEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.OrganizationEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.OrganizationEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 service health events that may affect Google Cloud products used
    * across the organization. It is a read-only view and does not allow any
@@ -1909,23 +1647,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.servicehealth.v1.OrganizationEvent}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.OrganizationEvent)
       com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto
-          .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto
-          .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable
+      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.servicehealth.v1.OrganizationEvent.class,
-              com.google.cloud.servicehealth.v1.OrganizationEvent.Builder.class);
+              com.google.cloud.servicehealth.v1.OrganizationEvent.class, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder.class);
     }
 
     // Construct using com.google.cloud.servicehealth.v1.OrganizationEvent.newBuilder()
@@ -1933,13 +1669,14 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getEventImpactsFieldBuilder();
         getUpdatesFieldBuilder();
         getUpdateTimeFieldBuilder();
@@ -1948,7 +1685,6 @@ private void maybeForceBuilderInitialization() {
         getNextUpdateTimeFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1999,9 +1735,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto
-          .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
     }
 
     @java.lang.Override
@@ -2020,18 +1756,14 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent build() {
 
     @java.lang.Override
     public com.google.cloud.servicehealth.v1.OrganizationEvent buildPartial() {
-      com.google.cloud.servicehealth.v1.OrganizationEvent result =
-          new com.google.cloud.servicehealth.v1.OrganizationEvent(this);
+      com.google.cloud.servicehealth.v1.OrganizationEvent result = new com.google.cloud.servicehealth.v1.OrganizationEvent(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.servicehealth.v1.OrganizationEvent result) {
+    private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.OrganizationEvent result) {
       if (eventImpactsBuilder_ == null) {
         if (((bitField0_ & 0x00000080) != 0)) {
           eventImpacts_ = java.util.Collections.unmodifiableList(eventImpacts_);
@@ -2080,20 +1812,27 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.OrganizationEvent r
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
         to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.nextUpdateTime_ =
-            nextUpdateTimeBuilder_ == null ? nextUpdateTime_ : nextUpdateTimeBuilder_.build();
+        result.nextUpdateTime_ = nextUpdateTimeBuilder_ == null
+            ? nextUpdateTime_
+            : nextUpdateTimeBuilder_.build();
         to_bitField0_ |= 0x00000008;
       }
       result.bitField0_ |= to_bitField0_;
@@ -2103,39 +1842,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent) {
-        return mergeFrom((com.google.cloud.servicehealth.v1.OrganizationEvent) other);
+        return mergeFrom((com.google.cloud.servicehealth.v1.OrganizationEvent)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2143,8 +1881,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.servicehealth.v1.OrganizationEvent other) {
-      if (other == com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -2190,10 +1927,9 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.OrganizationEvent oth
             eventImpactsBuilder_ = null;
             eventImpacts_ = other.eventImpacts_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            eventImpactsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEventImpactsFieldBuilder()
-                    : null;
+            eventImpactsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEventImpactsFieldBuilder() : null;
           } else {
             eventImpactsBuilder_.addAllMessages(other.eventImpacts_);
           }
@@ -2217,10 +1953,9 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.OrganizationEvent oth
             updatesBuilder_ = null;
             updates_ = other.updates_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            updatesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getUpdatesFieldBuilder()
-                    : null;
+            updatesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getUpdatesFieldBuilder() : null;
           } else {
             updatesBuilder_.addAllMessages(other.updates_);
           }
@@ -2269,113 +2004,108 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                title_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                category_ = input.readEnum();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 40
-            case 66:
-              {
-                com.google.cloud.servicehealth.v1.EventUpdate m =
-                    input.readMessage(
-                        com.google.cloud.servicehealth.v1.EventUpdate.parser(), extensionRegistry);
-                if (updatesBuilder_ == null) {
-                  ensureUpdatesIsMutable();
-                  updates_.add(m);
-                } else {
-                  updatesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 66
-            case 74:
-              {
-                parentEvent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 90:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getNextUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 114
-            case 122:
-              {
-                com.google.cloud.servicehealth.v1.EventImpact m =
-                    input.readMessage(
-                        com.google.cloud.servicehealth.v1.EventImpact.parser(), extensionRegistry);
-                if (eventImpactsBuilder_ == null) {
-                  ensureEventImpactsIsMutable();
-                  eventImpacts_.add(m);
-                } else {
-                  eventImpactsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 122
-            case 128:
-              {
-                detailedState_ = input.readEnum();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 128
-            case 136:
-              {
-                detailedCategory_ = input.readEnum();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 136
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
-          } // switch (tag)
-        } // while (!done)
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              title_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              category_ = input.readEnum();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 40
+            case 66: {
+              com.google.cloud.servicehealth.v1.EventUpdate m =
+                  input.readMessage(
+                      com.google.cloud.servicehealth.v1.EventUpdate.parser(),
+                      extensionRegistry);
+              if (updatesBuilder_ == null) {
+                ensureUpdatesIsMutable();
+                updates_.add(m);
+              } else {
+                updatesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 66
+            case 74: {
+              parentEvent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 90: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getNextUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 114
+            case 122: {
+              com.google.cloud.servicehealth.v1.EventImpact m =
+                  input.readMessage(
+                      com.google.cloud.servicehealth.v1.EventImpact.parser(),
+                      extensionRegistry);
+              if (eventImpactsBuilder_ == null) {
+                ensureEventImpactsIsMutable();
+                eventImpacts_.add(m);
+              } else {
+                eventImpactsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 122
+            case 128: {
+              detailedState_ = input.readEnum();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 128
+            case 136: {
+              detailedCategory_ = input.readEnum();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 136
+            default: {
+              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 {
@@ -2383,13 +2113,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2401,16 +2128,14 @@ public Builder mergeFrom(
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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; @@ -2419,8 +2144,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2432,17 +2155,16 @@ public java.lang.String getName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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 { @@ -2450,8 +2172,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2463,25 +2183,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2493,10 +2207,7 @@ public Builder setName(java.lang.String value) {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return This builder for chaining. */ public Builder clearName() { @@ -2506,8 +2217,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2519,17 +2228,13 @@ public Builder clearName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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; @@ -2539,20 +2244,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object title_ = ""; /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -2561,21 +2264,20 @@ public java.lang.String getTitle() { } } /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for title. */ - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -2583,35 +2285,28 @@ public com.google.protobuf.ByteString getTitleBytes() { } } /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTitle( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTitle() { @@ -2621,21 +2316,17 @@ public Builder clearTitle() { return this; } /** - * - * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000002; @@ -2645,20 +2336,18 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2667,21 +2356,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2689,35 +2377,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2727,21 +2408,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000004; @@ -2751,33 +2428,22 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int category_ = 0; /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for category. */ - @java.lang.Override - public int getCategoryValue() { + @java.lang.Override public int getCategoryValue() { return category_; } /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for category to set. * @return This builder for chaining. */ @@ -2788,42 +2454,28 @@ public Builder setCategoryValue(int value) { return this; } /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The category. */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory getCategory() { - com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory result = - com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.forNumber(category_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.UNRECOGNIZED - : result; + com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory result = com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.forNumber(category_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory( - com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory value) { + public Builder setCategory(com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory value) { if (value == null) { throw new NullPointerException(); } @@ -2833,16 +2485,11 @@ public Builder setCategory( return this; } /** - * - * *
      * Output only. The category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCategory() { @@ -2854,33 +2501,22 @@ public Builder clearCategory() { private int detailedCategory_ = 0; /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedCategory. */ - @java.lang.Override - public int getDetailedCategoryValue() { + @java.lang.Override public int getDetailedCategoryValue() { return detailedCategory_; } /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for detailedCategory to set. * @return This builder for chaining. */ @@ -2891,44 +2527,28 @@ public Builder setDetailedCategoryValue(int value) { return this; } /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedCategory. */ @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory - getDetailedCategory() { - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory result = - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.forNumber( - detailedCategory_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.UNRECOGNIZED - : result; + public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory getDetailedCategory() { + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory result = com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.forNumber(detailedCategory_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The detailedCategory to set. * @return This builder for chaining. */ - public Builder setDetailedCategory( - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory value) { + public Builder setDetailedCategory(com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory value) { if (value == null) { throw new NullPointerException(); } @@ -2938,16 +2558,11 @@ public Builder setDetailedCategory( return this; } /** - * - * *
      * Output only. The detailed category of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDetailedCategory() { @@ -2959,33 +2574,22 @@ public Builder clearDetailedCategory() { private int state_ = 0; /** - * - * *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2996,37 +2600,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.State getState() { - com.google.cloud.servicehealth.v1.OrganizationEvent.State result = - com.google.cloud.servicehealth.v1.OrganizationEvent.State.forNumber(state_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEvent.State.UNRECOGNIZED - : result; + com.google.cloud.servicehealth.v1.OrganizationEvent.State result = com.google.cloud.servicehealth.v1.OrganizationEvent.State.forNumber(state_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3040,16 +2631,11 @@ public Builder setState(com.google.cloud.servicehealth.v1.OrganizationEvent.Stat return this; } /** - * - * *
      * Output only. The current state of the event.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3061,33 +2647,22 @@ public Builder clearState() { private int detailedState_ = 0; /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedState. */ - @java.lang.Override - public int getDetailedStateValue() { + @java.lang.Override public int getDetailedStateValue() { return detailedState_; } /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for detailedState to set. * @return This builder for chaining. */ @@ -3098,43 +2673,28 @@ public Builder setDetailedStateValue(int value) { return this; } /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedState. */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState getDetailedState() { - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState result = - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.forNumber( - detailedState_); - return result == null - ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.UNRECOGNIZED - : result; + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState result = com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.forNumber(detailedState_); + return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The detailedState to set. * @return This builder for chaining. */ - public Builder setDetailedState( - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState value) { + public Builder setDetailedState(com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState value) { if (value == null) { throw new NullPointerException(); } @@ -3144,16 +2704,11 @@ public Builder setDetailedState( return this; } /** - * - * *
      * Output only. The current detailed state of the incident.
      * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDetailedState() { @@ -3164,33 +2719,24 @@ public Builder clearDetailedState() { } private java.util.List eventImpacts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEventImpactsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - eventImpacts_ = - new java.util.ArrayList(eventImpacts_); + eventImpacts_ = new java.util.ArrayList(eventImpacts_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, - com.google.cloud.servicehealth.v1.EventImpact.Builder, - com.google.cloud.servicehealth.v1.EventImpactOrBuilder> - eventImpactsBuilder_; + com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder> eventImpactsBuilder_; /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getEventImpactsList() { if (eventImpactsBuilder_ == null) { @@ -3200,16 +2746,12 @@ public java.util.List getEventImp } } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getEventImpactsCount() { if (eventImpactsBuilder_ == null) { @@ -3219,16 +2761,12 @@ public int getEventImpactsCount() { } } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) { if (eventImpactsBuilder_ == null) { @@ -3238,18 +2776,15 @@ public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) } } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEventImpacts(int index, com.google.cloud.servicehealth.v1.EventImpact value) { + public Builder setEventImpacts( + int index, com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3263,16 +2798,12 @@ public Builder setEventImpacts(int index, com.google.cloud.servicehealth.v1.Even return this; } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEventImpacts( int index, com.google.cloud.servicehealth.v1.EventImpact.Builder builderForValue) { @@ -3286,16 +2817,12 @@ public Builder setEventImpacts( return this; } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addEventImpacts(com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { @@ -3311,18 +2838,15 @@ public Builder addEventImpacts(com.google.cloud.servicehealth.v1.EventImpact val return this; } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addEventImpacts(int index, com.google.cloud.servicehealth.v1.EventImpact value) { + public Builder addEventImpacts( + int index, com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3336,16 +2860,12 @@ public Builder addEventImpacts(int index, com.google.cloud.servicehealth.v1.Even return this; } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addEventImpacts( com.google.cloud.servicehealth.v1.EventImpact.Builder builderForValue) { @@ -3359,16 +2879,12 @@ public Builder addEventImpacts( return this; } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addEventImpacts( int index, com.google.cloud.servicehealth.v1.EventImpact.Builder builderForValue) { @@ -3382,22 +2898,19 @@ public Builder addEventImpacts( return this; } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllEventImpacts( java.lang.Iterable values) { if (eventImpactsBuilder_ == null) { ensureEventImpactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventImpacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventImpacts_); onChanged(); } else { eventImpactsBuilder_.addAllMessages(values); @@ -3405,16 +2918,12 @@ public Builder addAllEventImpacts( return this; } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEventImpacts() { if (eventImpactsBuilder_ == null) { @@ -3427,16 +2936,12 @@ public Builder clearEventImpacts() { return this; } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeEventImpacts(int index) { if (eventImpactsBuilder_ == null) { @@ -3449,54 +2954,42 @@ public Builder removeEventImpacts(int index) { return this; } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuilder( + int index) { return getEventImpactsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( int index) { if (eventImpactsBuilder_ == null) { - return eventImpacts_.get(index); - } else { + return eventImpacts_.get(index); } else { return eventImpactsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getEventImpactsOrBuilderList() { + public java.util.List + getEventImpactsOrBuilderList() { if (eventImpactsBuilder_ != null) { return eventImpactsBuilder_.getMessageOrBuilderList(); } else { @@ -3504,98 +2997,76 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB } } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder() { - return getEventImpactsFieldBuilder() - .addBuilder(com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); + return getEventImpactsFieldBuilder().addBuilder( + com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder(int index) { - return getEventImpactsFieldBuilder() - .addBuilder(index, com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder( + int index) { + return getEventImpactsFieldBuilder().addBuilder( + index, com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); } /** - * - * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getEventImpactsBuilderList() { + public java.util.List + getEventImpactsBuilderList() { return getEventImpactsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, - com.google.cloud.servicehealth.v1.EventImpact.Builder, - com.google.cloud.servicehealth.v1.EventImpactOrBuilder> + com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder> getEventImpactsFieldBuilder() { if (eventImpactsBuilder_ == null) { - eventImpactsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, - com.google.cloud.servicehealth.v1.EventImpact.Builder, - com.google.cloud.servicehealth.v1.EventImpactOrBuilder>( - eventImpacts_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + eventImpactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder>( + eventImpacts_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); eventImpacts_ = null; } return eventImpactsBuilder_; } private java.util.List updates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureUpdatesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { updates_ = new java.util.ArrayList(updates_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, - com.google.cloud.servicehealth.v1.EventUpdate.Builder, - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> - updatesBuilder_; + com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> updatesBuilder_; /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getUpdatesList() { if (updatesBuilder_ == null) { @@ -3605,16 +3076,12 @@ public java.util.List getUpdatesL } } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getUpdatesCount() { if (updatesBuilder_ == null) { @@ -3624,16 +3091,12 @@ public int getUpdatesCount() { } } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { if (updatesBuilder_ == null) { @@ -3643,18 +3106,15 @@ public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { } } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdates(int index, com.google.cloud.servicehealth.v1.EventUpdate value) { + public Builder setUpdates( + int index, com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3668,16 +3128,12 @@ public Builder setUpdates(int index, com.google.cloud.servicehealth.v1.EventUpda return this; } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdates( int index, com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3691,16 +3147,12 @@ public Builder setUpdates( return this; } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addUpdates(com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { @@ -3716,18 +3168,15 @@ public Builder addUpdates(com.google.cloud.servicehealth.v1.EventUpdate value) { return this; } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addUpdates(int index, com.google.cloud.servicehealth.v1.EventUpdate value) { + public Builder addUpdates( + int index, com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3741,16 +3190,12 @@ public Builder addUpdates(int index, com.google.cloud.servicehealth.v1.EventUpda return this; } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addUpdates( com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3764,16 +3209,12 @@ public Builder addUpdates( return this; } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addUpdates( int index, com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3787,22 +3228,19 @@ public Builder addUpdates( return this; } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllUpdates( java.lang.Iterable values) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, updates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, updates_); onChanged(); } else { updatesBuilder_.addAllMessages(values); @@ -3810,16 +3248,12 @@ public Builder addAllUpdates( return this; } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdates() { if (updatesBuilder_ == null) { @@ -3832,16 +3266,12 @@ public Builder clearUpdates() { return this; } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeUpdates(int index) { if (updatesBuilder_ == null) { @@ -3854,53 +3284,42 @@ public Builder removeUpdates(int index) { return this; } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.EventUpdate.Builder getUpdatesBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventUpdate.Builder getUpdatesBuilder( + int index) { return getUpdatesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index) { + public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( + int index) { if (updatesBuilder_ == null) { - return updates_.get(index); - } else { + return updates_.get(index); } else { return updatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getUpdatesOrBuilderList() { + public java.util.List + getUpdatesOrBuilderList() { if (updatesBuilder_ != null) { return updatesBuilder_.getMessageOrBuilderList(); } else { @@ -3908,66 +3327,52 @@ public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilde } } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder() { - return getUpdatesFieldBuilder() - .addBuilder(com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); + return getUpdatesFieldBuilder().addBuilder( + com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(int index) { - return getUpdatesFieldBuilder() - .addBuilder(index, com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder( + int index) { + return getUpdatesFieldBuilder().addBuilder( + index, com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); } /** - * - * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getUpdatesBuilderList() { + public java.util.List + getUpdatesBuilderList() { return getUpdatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, - com.google.cloud.servicehealth.v1.EventUpdate.Builder, - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> + com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> getUpdatesFieldBuilder() { if (updatesBuilder_ == null) { - updatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, - com.google.cloud.servicehealth.v1.EventUpdate.Builder, - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder>( - updates_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder>( + updates_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); updates_ = null; } return updatesBuilder_; @@ -3975,8 +3380,6 @@ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(i private java.lang.Object parentEvent_ = ""; /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3984,13 +3387,13 @@ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(i
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parentEvent. */ public java.lang.String getParentEvent() { java.lang.Object ref = parentEvent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentEvent_ = s; return s; @@ -3999,8 +3402,6 @@ public java.lang.String getParentEvent() { } } /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -4008,14 +3409,15 @@ public java.lang.String getParentEvent() {
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parentEvent. */ - public com.google.protobuf.ByteString getParentEventBytes() { + public com.google.protobuf.ByteString + getParentEventBytes() { java.lang.Object ref = parentEvent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentEvent_ = b; return b; } else { @@ -4023,8 +3425,6 @@ public com.google.protobuf.ByteString getParentEventBytes() { } } /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -4032,22 +3432,18 @@ public com.google.protobuf.ByteString getParentEventBytes() {
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The parentEvent to set. * @return This builder for chaining. */ - public Builder setParentEvent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentEvent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parentEvent_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -4055,7 +3451,6 @@ public Builder setParentEvent(java.lang.String value) {
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearParentEvent() { @@ -4065,8 +3460,6 @@ public Builder clearParentEvent() { return this; } /** - * - * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -4074,14 +3467,12 @@ public Builder clearParentEvent() {
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for parentEvent to set. * @return This builder for chaining. */ - public Builder setParentEventBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentEventBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentEvent_ = value; bitField0_ |= 0x00000200; @@ -4091,58 +3482,39 @@ public Builder setParentEventBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4158,17 +3530,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -4179,21 +3548,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -4208,15 +3573,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -4229,15 +3590,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000400; @@ -4245,48 +3602,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time the update was posted.
      * 
* - * - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -4294,37 +3639,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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_; /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -4335,15 +3667,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -4359,17 +3687,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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 { @@ -4380,21 +3705,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -4409,15 +3730,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4430,15 +3747,11 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000800; @@ -4446,46 +3759,36 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. The start time of the event, if applicable.
      * 
* - * - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -4493,35 +3796,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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_; /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -4532,14 +3824,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -4555,16 +3844,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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 { @@ -4575,20 +3862,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -4603,14 +3887,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4623,14 +3904,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00001000; @@ -4638,44 +3916,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -4683,61 +3953,42 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp nextUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - nextUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextUpdateTimeBuilder_; /** - * - * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the nextUpdateTime field is set. */ public boolean hasNextUpdateTime() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The nextUpdateTime. */ public com.google.protobuf.Timestamp getNextUpdateTime() { if (nextUpdateTimeBuilder_ == null) { - return nextUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextUpdateTime_; + return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; } else { return nextUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setNextUpdateTime(com.google.protobuf.Timestamp value) { if (nextUpdateTimeBuilder_ == null) { @@ -4753,18 +4004,15 @@ public Builder setNextUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setNextUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (nextUpdateTimeBuilder_ == null) { nextUpdateTime_ = builderForValue.build(); } else { @@ -4775,22 +4023,18 @@ public Builder setNextUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeNextUpdateTime(com.google.protobuf.Timestamp value) { if (nextUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && nextUpdateTime_ != null - && nextUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + nextUpdateTime_ != null && + nextUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getNextUpdateTimeBuilder().mergeFrom(value); } else { nextUpdateTime_ = value; @@ -4805,16 +4049,12 @@ public Builder mergeNextUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearNextUpdateTime() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4827,16 +4067,12 @@ public Builder clearNextUpdateTime() { return this; } /** - * - * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getNextUpdateTimeBuilder() { bitField0_ |= 0x00002000; @@ -4844,57 +4080,45 @@ public com.google.protobuf.Timestamp.Builder getNextUpdateTimeBuilder() { return getNextUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder() { if (nextUpdateTimeBuilder_ != null) { return nextUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return nextUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextUpdateTime_; + return nextUpdateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; } } /** - * - * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getNextUpdateTimeFieldBuilder() { if (nextUpdateTimeBuilder_ == null) { - nextUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getNextUpdateTime(), getParentForChildren(), isClean()); + nextUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getNextUpdateTime(), + getParentForChildren(), + isClean()); nextUpdateTime_ = null; } return nextUpdateTimeBuilder_; } - @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); } @@ -4904,12 +4128,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.OrganizationEvent) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.OrganizationEvent) private static final com.google.cloud.servicehealth.v1.OrganizationEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.OrganizationEvent(); } @@ -4918,27 +4142,27 @@ public static com.google.cloud.servicehealth.v1.OrganizationEvent getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 OrganizationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4953,4 +4177,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.OrganizationEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java similarity index 99% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java index 99dea3f0fe92..aea6a4bc0506 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java similarity index 64% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java index aa319faca925..0092f4f8a600 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface OrganizationEventOrBuilder - extends +public interface OrganizationEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.OrganizationEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including organization ID and location using the form
@@ -38,16 +20,11 @@ public interface OrganizationEventOrBuilder
    * `event_id` - Organization event ID to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including organization ID and location using the form
@@ -59,317 +36,227 @@ public interface OrganizationEventOrBuilder
    * `event_id` - Organization event ID to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for title. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString + getTitleBytes(); /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for category. */ int getCategoryValue(); /** - * - * *
    * Output only. The category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The category. */ com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory getCategory(); /** - * - * *
    * Output only. The detailed category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedCategory. */ int getDetailedCategoryValue(); /** - * - * *
    * Output only. The detailed category of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedCategory. */ com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory getDetailedCategory(); /** - * - * *
    * Output only. The current state of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of the event.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.servicehealth.v1.OrganizationEvent.State getState(); /** - * - * *
    * Output only. The current detailed state of the incident.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for detailedState. */ int getDetailedStateValue(); /** - * - * *
    * Output only. The current detailed state of the incident.
    * 
* - * - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The detailedState. */ com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState getDetailedState(); /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getEventImpactsList(); + java.util.List + getEventImpactsList(); /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index); /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getEventImpactsCount(); /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getEventImpactsOrBuilderList(); /** - * - * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder(int index); + com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( + int index); /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getUpdatesList(); + java.util.List + getUpdatesList(); /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index); /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getUpdatesCount(); /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getUpdatesOrBuilderList(); /** - * - * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index); + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( + int index); /** - * - * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -377,13 +264,10 @@ public interface OrganizationEventOrBuilder
    * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parentEvent. */ java.lang.String getParentEvent(); /** - * - * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -391,166 +275,119 @@ public interface OrganizationEventOrBuilder
    * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parentEvent. */ - com.google.protobuf.ByteString getParentEventBytes(); + com.google.protobuf.ByteString + getParentEventBytes(); /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the nextUpdateTime field is set. */ boolean hasNextUpdateTime(); /** - * - * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The nextUpdateTime. */ com.google.protobuf.Timestamp getNextUpdateTime(); /** - * - * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java similarity index 71% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java index 24fea50be40c..3d527e68d01a 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,8 +5,6 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * The organization event fields to include in ListOrganizationEvents API
  * response. This enum lists all possible organization event views.
@@ -29,10 +12,9 @@
  *
  * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEventView}
  */
-public enum OrganizationEventView implements com.google.protobuf.ProtocolMessageEnum {
+public enum OrganizationEventView
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Unspecified event view. Default to `ORGANIZATION_EVENT_VIEW_BASIC`.
    * 
@@ -41,8 +23,6 @@ public enum OrganizationEventView implements com.google.protobuf.ProtocolMessage */ ORGANIZATION_EVENT_VIEW_UNSPECIFIED(0), /** - * - * *
    * Includes all organization event fields except `updates`. This view is the
    * default for ListOrganizationEvents API.
@@ -52,8 +32,6 @@ public enum OrganizationEventView implements com.google.protobuf.ProtocolMessage
    */
   ORGANIZATION_EVENT_VIEW_BASIC(1),
   /**
-   *
-   *
    * 
    * Includes all organization event fields.
    * 
@@ -65,8 +43,6 @@ public enum OrganizationEventView implements com.google.protobuf.ProtocolMessage ; /** - * - * *
    * Unspecified event view. Default to `ORGANIZATION_EVENT_VIEW_BASIC`.
    * 
@@ -75,8 +51,6 @@ public enum OrganizationEventView implements com.google.protobuf.ProtocolMessage */ public static final int ORGANIZATION_EVENT_VIEW_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Includes all organization event fields except `updates`. This view is the
    * default for ListOrganizationEvents API.
@@ -86,8 +60,6 @@ public enum OrganizationEventView implements com.google.protobuf.ProtocolMessage
    */
   public static final int ORGANIZATION_EVENT_VIEW_BASIC_VALUE = 1;
   /**
-   *
-   *
    * 
    * Includes all organization event fields.
    * 
@@ -96,6 +68,7 @@ public enum OrganizationEventView implements com.google.protobuf.ProtocolMessage */ public static final int ORGANIZATION_EVENT_VIEW_FULL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -120,14 +93,10 @@ public static OrganizationEventView valueOf(int value) { */ public static OrganizationEventView forNumber(int value) { switch (value) { - case 0: - return ORGANIZATION_EVENT_VIEW_UNSPECIFIED; - case 1: - return ORGANIZATION_EVENT_VIEW_BASIC; - case 2: - return ORGANIZATION_EVENT_VIEW_FULL; - default: - return null; + case 0: return ORGANIZATION_EVENT_VIEW_UNSPECIFIED; + case 1: return ORGANIZATION_EVENT_VIEW_BASIC; + case 2: return ORGANIZATION_EVENT_VIEW_FULL; + default: return null; } } @@ -135,31 +104,29 @@ public static OrganizationEventView forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OrganizationEventView findValueByNumber(int number) { - return OrganizationEventView.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + OrganizationEventView> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OrganizationEventView findValueByNumber(int number) { + return OrganizationEventView.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.cloud.servicehealth.v1.EventResourcesProto.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.getDescriptor().getEnumTypes().get(1); } private static final OrganizationEventView[] VALUES = values(); @@ -167,7 +134,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static OrganizationEventView 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; @@ -183,3 +151,4 @@ private OrganizationEventView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.servicehealth.v1.OrganizationEventView) } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java similarity index 65% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java index 2d640cf1c4af..36f8ef91bed9 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,8 +5,6 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * Represents impact to assets at organizational level. It is a read-only view
  * and does not allow any modifications.
@@ -29,50 +12,46 @@
  *
  * Protobuf type {@code google.cloud.servicehealth.v1.OrganizationImpact}
  */
-public final class OrganizationImpact extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class OrganizationImpact extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.OrganizationImpact)
     OrganizationImpactOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use OrganizationImpact.newBuilder() to construct.
   private OrganizationImpact(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private OrganizationImpact() {
     name_ = "";
-    events_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    events_ =
+        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 OrganizationImpact();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto
-        .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto
-        .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable
+    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.servicehealth.v1.OrganizationImpact.class,
-            com.google.cloud.servicehealth.v1.OrganizationImpact.Builder.class);
+            com.google.cloud.servicehealth.v1.OrganizationImpact.class, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. Identifier. Unique name of the organization impact in this
    * scope including organization and location using the form
@@ -86,10 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return The name. */ @java.lang.Override @@ -98,15 +74,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. Identifier. Unique name of the organization impact in this
    * scope including organization and location using the form
@@ -120,18 +95,17 @@ public java.lang.String getName() {
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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 { @@ -140,53 +114,38 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int EVENTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList events_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Output only. A list of event names impacting the asset.
    * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the events. */ - public com.google.protobuf.ProtocolStringList getEventsList() { + public com.google.protobuf.ProtocolStringList + getEventsList() { return events_; } /** - * - * *
    * Output only. A list of event names impacting the asset.
    * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of events. */ public int getEventsCount() { return events_.size(); } /** - * - * *
    * Output only. A list of event names impacting the asset.
    * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The events at the given index. */ @@ -194,36 +153,27 @@ public java.lang.String getEvents(int index) { return events_.get(index); } /** - * - * *
    * Output only. A list of event names impacting the asset.
    * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the events at the given index. */ - public com.google.protobuf.ByteString getEventsBytes(int index) { + public com.google.protobuf.ByteString + getEventsBytes(int index) { return events_.getByteString(index); } public static final int ASSET_FIELD_NUMBER = 3; private com.google.cloud.servicehealth.v1.Asset asset_; /** - * - * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the asset field is set. */ @java.lang.Override @@ -231,16 +181,11 @@ public boolean hasAsset() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The asset. */ @java.lang.Override @@ -248,15 +193,11 @@ public com.google.cloud.servicehealth.v1.Asset getAsset() { return asset_ == null ? com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() : asset_; } /** - * - * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder() { @@ -266,15 +207,11 @@ public com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -282,15 +219,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -298,14 +231,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -313,7 +243,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +254,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_); } @@ -359,10 +289,12 @@ public int getSerializedSize() { size += 1 * getEventsList().size(); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAsset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAsset()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -372,23 +304,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.cloud.servicehealth.v1.OrganizationImpact)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.OrganizationImpact other = - (com.google.cloud.servicehealth.v1.OrganizationImpact) obj; + com.google.cloud.servicehealth.v1.OrganizationImpact other = (com.google.cloud.servicehealth.v1.OrganizationImpact) obj; - if (!getName().equals(other.getName())) return false; - if (!getEventsList().equals(other.getEventsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEventsList() + .equals(other.getEventsList())) return false; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset().equals(other.getAsset())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -421,103 +356,98 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.OrganizationImpact parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.OrganizationImpact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.OrganizationImpact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.OrganizationImpact parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 impact to assets at organizational level. It is a read-only view
    * and does not allow any modifications.
@@ -525,23 +455,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.servicehealth.v1.OrganizationImpact}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.OrganizationImpact)
       com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto
-          .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto
-          .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable
+      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.servicehealth.v1.OrganizationImpact.class,
-              com.google.cloud.servicehealth.v1.OrganizationImpact.Builder.class);
+              com.google.cloud.servicehealth.v1.OrganizationImpact.class, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder.class);
     }
 
     // Construct using com.google.cloud.servicehealth.v1.OrganizationImpact.newBuilder()
@@ -549,24 +477,25 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getAssetFieldBuilder();
         getUpdateTimeFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       name_ = "";
-      events_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      events_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       asset_ = null;
       if (assetBuilder_ != null) {
         assetBuilder_.dispose();
@@ -581,9 +510,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto
-          .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
     }
 
     @java.lang.Override
@@ -602,11 +531,8 @@ public com.google.cloud.servicehealth.v1.OrganizationImpact build() {
 
     @java.lang.Override
     public com.google.cloud.servicehealth.v1.OrganizationImpact buildPartial() {
-      com.google.cloud.servicehealth.v1.OrganizationImpact result =
-          new com.google.cloud.servicehealth.v1.OrganizationImpact(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.servicehealth.v1.OrganizationImpact result = new com.google.cloud.servicehealth.v1.OrganizationImpact(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -622,11 +548,15 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.OrganizationImpact
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.asset_ = assetBuilder_ == null ? asset_ : assetBuilder_.build();
+        result.asset_ = assetBuilder_ == null
+            ? asset_
+            : assetBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -636,39 +566,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.OrganizationImpact
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.OrganizationImpact) {
-        return mergeFrom((com.google.cloud.servicehealth.v1.OrganizationImpact) other);
+        return mergeFrom((com.google.cloud.servicehealth.v1.OrganizationImpact)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -676,8 +605,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.servicehealth.v1.OrganizationImpact other) {
-      if (other == com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -725,38 +653,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureEventsIsMutable();
-                events_.add(s);
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getAssetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            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: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureEventsIsMutable();
+              events_.add(s);
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getAssetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              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) {
@@ -766,13 +693,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -786,16 +710,14 @@ public Builder mergeFrom(
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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; @@ -804,8 +726,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -819,17 +739,16 @@ public java.lang.String getName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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 { @@ -837,8 +756,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -852,25 +769,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -884,10 +795,7 @@ public Builder setName(java.lang.String value) {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return This builder for chaining. */ public Builder clearName() { @@ -897,8 +805,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -912,17 +818,13 @@ public Builder clearName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @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; @@ -932,7 +834,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList events_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureEventsIsMutable() { if (!events_.isModifiable()) { events_ = new com.google.protobuf.LazyStringArrayList(events_); @@ -940,49 +841,35 @@ private void ensureEventsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Output only. A list of event names impacting the asset.
      * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the events. */ - public com.google.protobuf.ProtocolStringList getEventsList() { + public com.google.protobuf.ProtocolStringList + getEventsList() { events_.makeImmutable(); return events_; } /** - * - * *
      * Output only. A list of event names impacting the asset.
      * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of events. */ public int getEventsCount() { return events_.size(); } /** - * - * *
      * Output only. A list of event names impacting the asset.
      * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The events at the given index. */ @@ -990,41 +877,31 @@ public java.lang.String getEvents(int index) { return events_.get(index); } /** - * - * *
      * Output only. A list of event names impacting the asset.
      * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the events at the given index. */ - public com.google.protobuf.ByteString getEventsBytes(int index) { + public com.google.protobuf.ByteString + getEventsBytes(int index) { return events_.getByteString(index); } /** - * - * *
      * Output only. A list of event names impacting the asset.
      * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The events to set. * @return This builder for chaining. */ - public Builder setEvents(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEvents( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); bitField0_ |= 0x00000002; @@ -1032,23 +909,17 @@ public Builder setEvents(int index, java.lang.String value) { return this; } /** - * - * *
      * Output only. A list of event names impacting the asset.
      * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The events to add. * @return This builder for chaining. */ - public Builder addEvents(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEvents( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); bitField0_ |= 0x00000002; @@ -1056,64 +927,50 @@ public Builder addEvents(java.lang.String value) { return this; } /** - * - * *
      * Output only. A list of event names impacting the asset.
      * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param values The events to add. * @return This builder for chaining. */ - public Builder addAllEvents(java.lang.Iterable values) { + public Builder addAllEvents( + java.lang.Iterable values) { ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. A list of event names impacting the asset.
      * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearEvents() { - events_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + events_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Output only. A list of event names impacting the asset.
      * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes of the events to add. * @return This builder for chaining. */ - public Builder addEventsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEventsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEventsIsMutable(); events_.add(value); @@ -1124,58 +981,39 @@ public Builder addEventsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.servicehealth.v1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Asset, - com.google.cloud.servicehealth.v1.Asset.Builder, - com.google.cloud.servicehealth.v1.AssetOrBuilder> - assetBuilder_; + com.google.cloud.servicehealth.v1.Asset, com.google.cloud.servicehealth.v1.Asset.Builder, com.google.cloud.servicehealth.v1.AssetOrBuilder> assetBuilder_; /** - * - * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the asset field is set. */ public boolean hasAsset() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The asset. */ public com.google.cloud.servicehealth.v1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null - ? com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() : asset_; } else { return assetBuilder_.getMessage(); } } /** - * - * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAsset(com.google.cloud.servicehealth.v1.Asset value) { if (assetBuilder_ == null) { @@ -1191,17 +1029,14 @@ public Builder setAsset(com.google.cloud.servicehealth.v1.Asset value) { return this; } /** - * - * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setAsset(com.google.cloud.servicehealth.v1.Asset.Builder builderForValue) { + public Builder setAsset( + com.google.cloud.servicehealth.v1.Asset.Builder builderForValue) { if (assetBuilder_ == null) { asset_ = builderForValue.build(); } else { @@ -1212,21 +1047,17 @@ public Builder setAsset(com.google.cloud.servicehealth.v1.Asset.Builder builderF return this; } /** - * - * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAsset(com.google.cloud.servicehealth.v1.Asset value) { if (assetBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && asset_ != null - && asset_ != com.google.cloud.servicehealth.v1.Asset.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + asset_ != null && + asset_ != com.google.cloud.servicehealth.v1.Asset.getDefaultInstance()) { getAssetBuilder().mergeFrom(value); } else { asset_ = value; @@ -1241,15 +1072,11 @@ public Builder mergeAsset(com.google.cloud.servicehealth.v1.Asset value) { return this; } /** - * - * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAsset() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1262,15 +1089,11 @@ public Builder clearAsset() { return this; } /** - * - * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.Asset.Builder getAssetBuilder() { bitField0_ |= 0x00000004; @@ -1278,48 +1101,36 @@ public com.google.cloud.servicehealth.v1.Asset.Builder getAssetBuilder() { return getAssetFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null - ? com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? + com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() : asset_; } } /** - * - * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Asset, - com.google.cloud.servicehealth.v1.Asset.Builder, - com.google.cloud.servicehealth.v1.AssetOrBuilder> + com.google.cloud.servicehealth.v1.Asset, com.google.cloud.servicehealth.v1.Asset.Builder, com.google.cloud.servicehealth.v1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Asset, - com.google.cloud.servicehealth.v1.Asset.Builder, - com.google.cloud.servicehealth.v1.AssetOrBuilder>( - getAsset(), getParentForChildren(), isClean()); + assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.servicehealth.v1.Asset, com.google.cloud.servicehealth.v1.Asset.Builder, com.google.cloud.servicehealth.v1.AssetOrBuilder>( + getAsset(), + getParentForChildren(), + isClean()); asset_ = null; } return assetBuilder_; @@ -1327,58 +1138,39 @@ public com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time when the affected project was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. The time when the affected project was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the affected project was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1394,17 +1186,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the affected project was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1415,21 +1204,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the affected project was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1444,15 +1229,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the affected project was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1465,15 +1246,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time when the affected project was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1481,55 +1258,43 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the affected project was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time when the affected project was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @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); } @@ -1539,12 +1304,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.OrganizationImpact) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.OrganizationImpact) private static final com.google.cloud.servicehealth.v1.OrganizationImpact DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.OrganizationImpact(); } @@ -1553,27 +1318,27 @@ public static com.google.cloud.servicehealth.v1.OrganizationImpact getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationImpact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 OrganizationImpact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1588,4 +1353,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.OrganizationImpact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java similarity index 99% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java index aa15d4d8a694..0521b36b332b 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java similarity index 63% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java index 87988751763f..a441664cb796 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface OrganizationImpactOrBuilder - extends +public interface OrganizationImpactOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.OrganizationImpact) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Identifier. Unique name of the organization impact in this
    * scope including organization and location using the form
@@ -40,16 +22,11 @@ public interface OrganizationImpactOrBuilder
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Identifier. Unique name of the organization impact in this
    * scope including organization and location using the form
@@ -63,149 +40,104 @@ public interface OrganizationImpactOrBuilder
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. A list of event names impacting the asset.
    * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the events. */ - java.util.List getEventsList(); + java.util.List + getEventsList(); /** - * - * *
    * Output only. A list of event names impacting the asset.
    * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of events. */ int getEventsCount(); /** - * - * *
    * Output only. A list of event names impacting the asset.
    * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The events at the given index. */ java.lang.String getEvents(int index); /** - * - * *
    * Output only. A list of event names impacting the asset.
    * 
* - * - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the events at the given index. */ - com.google.protobuf.ByteString getEventsBytes(int index); + com.google.protobuf.ByteString + getEventsBytes(int index); /** - * - * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the asset field is set. */ boolean hasAsset(); /** - * - * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The asset. */ com.google.cloud.servicehealth.v1.Asset getAsset(); /** - * - * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder(); /** - * - * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java similarity index 99% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java index 5de752238b64..bf80bc89eb9d 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java similarity index 66% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java index 8048e4108ec6..8aae20120441 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -20,62 +5,54 @@ package com.google.cloud.servicehealth.v1; /** - * - * *
  * Represents the Google Cloud product impacted by the event.
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Product} */ -public final class Product extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Product extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.Product) ProductOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Product.newBuilder() to construct. private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Product() { productName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Product(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Product.class, - com.google.cloud.servicehealth.v1.Product.Builder.class); + com.google.cloud.servicehealth.v1.Product.class, com.google.cloud.servicehealth.v1.Product.Builder.class); } public static final int PRODUCT_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object productName_ = ""; /** - * - * *
    * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
    * 
* * string product_name = 1; - * * @return The productName. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getProductName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productName_ = s; return s; } } /** - * - * *
    * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
    * 
* * string product_name = 1; - * * @return The bytes for productName. */ @java.lang.Override - public com.google.protobuf.ByteString getProductNameBytes() { + public com.google.protobuf.ByteString + getProductNameBytes() { java.lang.Object ref = productName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productName_ = b; return b; } else { @@ -115,7 +92,6 @@ public com.google.protobuf.ByteString getProductNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +103,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(productName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productName_); } @@ -151,15 +128,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.cloud.servicehealth.v1.Product)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.Product other = - (com.google.cloud.servicehealth.v1.Product) obj; + com.google.cloud.servicehealth.v1.Product other = (com.google.cloud.servicehealth.v1.Product) obj; - if (!getProductName().equals(other.getProductName())) return false; + if (!getProductName() + .equals(other.getProductName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,136 +155,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.Product parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.Product parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Product parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.Product parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.Product parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 Google Cloud product impacted by the event.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Product} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.Product) com.google.cloud.servicehealth.v1.ProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Product.class, - com.google.cloud.servicehealth.v1.Product.Builder.class); + com.google.cloud.servicehealth.v1.Product.class, com.google.cloud.servicehealth.v1.Product.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.Product.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(); @@ -317,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto - .internal_static_google_cloud_servicehealth_v1_Product_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_descriptor; } @java.lang.Override @@ -338,11 +311,8 @@ public com.google.cloud.servicehealth.v1.Product build() { @java.lang.Override public com.google.cloud.servicehealth.v1.Product buildPartial() { - com.google.cloud.servicehealth.v1.Product result = - new com.google.cloud.servicehealth.v1.Product(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.servicehealth.v1.Product result = new com.google.cloud.servicehealth.v1.Product(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -358,39 +328,38 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product) { - return mergeFrom((com.google.cloud.servicehealth.v1.Product) other); + return mergeFrom((com.google.cloud.servicehealth.v1.Product)other); } else { super.mergeFrom(other); return this; @@ -430,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - productName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + productName_ = 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) { @@ -452,25 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object productName_ = ""; /** - * - * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; - * * @return The productName. */ public java.lang.String getProductName() { java.lang.Object ref = productName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productName_ = s; return s; @@ -479,21 +443,20 @@ public java.lang.String getProductName() { } } /** - * - * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; - * * @return The bytes for productName. */ - public com.google.protobuf.ByteString getProductNameBytes() { + public com.google.protobuf.ByteString + getProductNameBytes() { java.lang.Object ref = productName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productName_ = b; return b; } else { @@ -501,35 +464,28 @@ public com.google.protobuf.ByteString getProductNameBytes() { } } /** - * - * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; - * * @param value The productName to set. * @return This builder for chaining. */ - public Builder setProductName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProductName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } productName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; - * * @return This builder for chaining. */ public Builder clearProductName() { @@ -539,30 +495,26 @@ public Builder clearProductName() { return this; } /** - * - * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; - * * @param value The bytes for productName to set. * @return This builder for chaining. */ - public Builder setProductNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProductNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); productName_ = 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); } @@ -572,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.Product) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.Product) private static final com.google.cloud.servicehealth.v1.Product DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.Product(); } @@ -586,27 +538,27 @@ public static com.google.cloud.servicehealth.v1.Product getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Product parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Product parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -621,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.Product getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java similarity index 51% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java index cc37e3317f15..26cb62d46586 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java @@ -1,51 +1,30 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ProductOrBuilder - extends +public interface ProductOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.Product) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
    * 
* * string product_name = 1; - * * @return The productName. */ java.lang.String getProductName(); /** - * - * *
    * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
    * 
* * string product_name = 1; - * * @return The bytes for productName. */ - com.google.protobuf.ByteString getProductNameBytes(); + com.google.protobuf.ByteString + getProductNameBytes(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto similarity index 96% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto index e8caa03a5335..33fad0c33815 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto +++ b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto @@ -105,12 +105,18 @@ message Event { // name of the parent. MERGED = 4; - // The incident was automatically closed because the issues couldn’t be - // confirmed or is no longer impacting Google Cloud Products and/or - // Locations. + // The incident was automatically closed because of the following reasons: + // + // * The impact of the incident could not be confirmed. + // * The incident was intermittent or resolved itself. + // + // The incident does not have a resolution because no action or + // investigation happened. If it is intermittent, the incident may reopen. AUTO_CLOSED = 9; - // The incident was verified as non-impactful. No further action required. + // Upon investigation, Google engineers concluded that the incident is not + // affecting a Google Cloud product. This state can change if the incident + // is reviewed again. FALSE_POSITIVE = 10; } @@ -273,12 +279,18 @@ message OrganizationEvent { // parent. MERGED = 4; - // The incident was automatically closed because the issues couldn’t be - // confirmed or is no longer impacting Google Cloud Products and/or - // Locations. + // The incident was automatically closed because of the following reasons: + // + // * The impact of the incident could not be confirmed. + // * The incident was intermittent or resolved itself. + // + // The incident does not have a resolution because no action or + // investigation happened. If it is intermittent, the incident may reopen. AUTO_CLOSED = 9; - // The incident was verified as non-impactful. No further action required. + // Upon investigation, Google engineers concluded that the incident is not + // affecting a Google Cloud product. This state can change if the incident + // is reviewed again. FALSE_POSITIVE = 10; } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto similarity index 100% rename from java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto rename to owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto diff --git a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java index 5636195130ab..4f59732de4db 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java index 8fb368e8fbe1..f0bb283b88a2 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java index 618c19902b24..b60ded35ff62 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java index 56c61ef8de7f..6b474b1cd821 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java index 765cd2dcf784..495e5271eb6a 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java index 8c8bd92614e8..75f2fe153fd4 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java index 8a454610156b..ef1aac4d6bb3 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java index a53a163da835..7890a27334b7 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java index a3c308829a15..3ad512773e81 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java index dc14f7f96485..2eb8af323cc2 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java index 4718b71d30f4..74c976c3346f 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java index e5acc2a61c5a..0bfe221947ab 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java index 03967c60df84..7b0aacdd39dc 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java index 84def5cae841..042858e5df6e 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java index ae79fbd14d23..15578cc736b8 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java index 25a26398650c..a74885b27a1d 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java index 1f0f0b28d3a5..80e187eeaee4 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java index ceb2f445065a..d1b43971c777 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java index 06b8a77165b1..17ad1d5e76df 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java index 392e7e1a2e4d..6b334eb788b3 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java index 988835e9baea..4bdfa2dd622c 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java index 63051543d8cf..86d5be7f0054 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java index dda35b5593cf..eea04e0b9714 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java index 0d9e9b65741b..88700f195ae5 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java index 33ed623637b0..59db64f66bff 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java index c11a1eac464b..d7aa8a85dbd4 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java similarity index 99% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java index 35d2b7df7415..3b5146b9ba9b 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java index 88ed71fb0860..a324dccbc9b8 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java index c7d82772eabb..f25f66c016ea 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java index 9286a1f88f64..68178109f03f 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java index 5b32029a1a32..5fbdbc9a1b71 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java index 55f826c3cdae..cfc924a385a4 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java index bf75e60e54d2..4966ecde4d6a 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java index 75f7be01cb7c..e29f6d8be573 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java index f056c22d2d74..5a1a81994944 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java index 07f6ed3a3bf8..127ceb3fb1b8 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java similarity index 98% rename from java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java rename to owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java index b2b8c6d4c13f..5272b76e0ffa 100644 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java +++ b/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 7ec767d2462f2c24b7a9ab494b4e7a1572734229 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 16 Feb 2024 00:03:47 +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 --- java-servicehealth/README.md | 2 +- .../servicehealth/v1/ServiceHealthClient.java | 0 .../v1/ServiceHealthSettings.java | 1 - .../servicehealth/v1/gapic_metadata.json | 0 .../cloud/servicehealth/v1/package-info.java | 0 .../GrpcServiceHealthCallableFactory.java | 0 .../v1/stub/GrpcServiceHealthStub.java | 1 - .../HttpJsonServiceHealthCallableFactory.java | 0 .../v1/stub/HttpJsonServiceHealthStub.java | 0 .../v1/stub/ServiceHealthStub.java | 0 .../v1/stub/ServiceHealthStubSettings.java | 0 .../reflect-config.json | 0 .../cloud/servicehealth/v1/MockLocations.java | 0 .../servicehealth/v1/MockLocationsImpl.java | 0 .../servicehealth/v1/MockServiceHealth.java | 0 .../v1/MockServiceHealthImpl.java | 0 .../v1/ServiceHealthClientHttpJsonTest.java | 0 .../v1/ServiceHealthClientTest.java | 0 .../servicehealth/v1/ServiceHealthGrpc.java | 1005 +++++++ .../google/cloud/servicehealth/v1/Asset.java | 381 +-- .../servicehealth/v1/AssetOrBuilder.java | 36 +- .../google/cloud/servicehealth/v1/Event.java | 2301 +++++++++++------ .../cloud/servicehealth/v1/EventImpact.java | 436 ++-- .../v1/EventImpactOrBuilder.java | 34 +- .../cloud/servicehealth/v1/EventName.java | 0 .../servicehealth/v1/EventOrBuilder.java | 259 +- .../servicehealth/v1/EventResourcesProto.java | 439 ++++ .../servicehealth/v1/EventServiceProto.java | 106 + .../cloud/servicehealth/v1/EventUpdate.java | 663 +++-- .../v1/EventUpdateOrBuilder.java | 71 +- .../cloud/servicehealth/v1/EventView.java | 86 +- .../servicehealth/v1/GetEventRequest.java | 347 ++- .../v1/GetEventRequestOrBuilder.java | 35 +- .../v1/GetOrganizationEventRequest.java | 364 +-- .../GetOrganizationEventRequestOrBuilder.java | 35 +- .../v1/GetOrganizationImpactRequest.java | 374 +-- ...GetOrganizationImpactRequestOrBuilder.java | 35 +- .../servicehealth/v1/ListEventsRequest.java | 606 +++-- .../v1/ListEventsRequestOrBuilder.java | 70 +- .../servicehealth/v1/ListEventsResponse.java | 683 +++-- .../v1/ListEventsResponseOrBuilder.java | 83 +- .../v1/ListOrganizationEventsRequest.java | 650 +++-- ...istOrganizationEventsRequestOrBuilder.java | 70 +- .../v1/ListOrganizationEventsResponse.java | 716 +++-- ...stOrganizationEventsResponseOrBuilder.java | 80 +- .../v1/ListOrganizationImpactsRequest.java | 553 ++-- ...stOrganizationImpactsRequestOrBuilder.java | 56 +- .../v1/ListOrganizationImpactsResponse.java | 732 ++++-- ...tOrganizationImpactsResponseOrBuilder.java | 80 +- .../cloud/servicehealth/v1/Location.java | 312 ++- .../cloud/servicehealth/v1/LocationName.java | 0 .../servicehealth/v1/LocationOrBuilder.java | 27 +- .../servicehealth/v1/OrganizationEvent.java | 2272 ++++++++++------ .../v1/OrganizationEventName.java | 0 .../v1/OrganizationEventOrBuilder.java | 265 +- .../v1/OrganizationEventView.java | 81 +- .../servicehealth/v1/OrganizationImpact.java | 777 ++++-- .../v1/OrganizationImpactName.java | 0 .../v1/OrganizationImpactOrBuilder.java | 106 +- .../v1/OrganizationLocationName.java | 0 .../cloud/servicehealth/v1/Product.java | 312 ++- .../servicehealth/v1/ProductOrBuilder.java | 27 +- .../servicehealth/v1/event_resources.proto | 0 .../servicehealth/v1/event_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../servicehealth/getevent/AsyncGetEvent.java | 0 .../servicehealth/getevent/SyncGetEvent.java | 0 .../getevent/SyncGetEventEventname.java | 0 .../getevent/SyncGetEventString.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../AsyncGetOrganizationEvent.java | 0 .../SyncGetOrganizationEvent.java | 0 ...rganizationEventOrganizationeventname.java | 0 .../SyncGetOrganizationEventString.java | 0 .../AsyncGetOrganizationImpact.java | 0 .../SyncGetOrganizationImpact.java | 0 ...anizationImpactOrganizationimpactname.java | 0 .../SyncGetOrganizationImpactString.java | 0 .../listevents/AsyncListEvents.java | 0 .../listevents/AsyncListEventsPaged.java | 0 .../listevents/SyncListEvents.java | 0 .../SyncListEventsLocationname.java | 0 .../listevents/SyncListEventsString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../AsyncListOrganizationEvents.java | 0 .../AsyncListOrganizationEventsPaged.java | 0 .../SyncListOrganizationEvents.java | 0 ...izationEventsOrganizationlocationname.java | 0 .../SyncListOrganizationEventsString.java | 0 .../AsyncListOrganizationImpacts.java | 0 .../AsyncListOrganizationImpactsPaged.java | 0 .../SyncListOrganizationImpacts.java | 0 ...zationImpactsOrganizationlocationname.java | 0 .../SyncListOrganizationImpactsString.java | 0 .../getevent/SyncGetEvent.java | 0 .../getevent/SyncGetEvent.java | 0 .../servicehealth/v1/ServiceHealthGrpc.java | 765 ------ .../servicehealth/v1/EventResourcesProto.java | 381 --- .../servicehealth/v1/EventServiceProto.java | 93 - 104 files changed, 10719 insertions(+), 6089 deletions(-) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java (99%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/package-info.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthCallableFactory.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthStub.java (99%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthCallableFactory.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthStub.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStub.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocations.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocationsImpl.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealth.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealthImpl.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientTest.java (100%) create mode 100644 java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java (70%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java (65%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java (68%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java (68%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java (70%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java (66%) create mode 100644 java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java create mode 100644 java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdate.java (70%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java (71%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java (67%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java (66%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java (56%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java (66%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java (61%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java (66%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java (64%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java (74%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java (76%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java (67%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java (63%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java (72%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java (78%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java (66%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java (64%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java (74%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java (80%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java (67%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java (68%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java (66%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java (50%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java (66%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java (64%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java (71%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java (65%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java (63%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java (66%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java (51%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java (100%) rename {owl-bot-staging/java-servicehealth/v1 => java-servicehealth}/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java (100%) delete mode 100644 owl-bot-staging/java-servicehealth/v1/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java delete mode 100644 owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java delete mode 100644 owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index f0433541149a..7c17208f6eab 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-servicehealth/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.2.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java similarity index 99% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java index 37fed18b36d9..7ca492b6c740 100644 --- a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java +++ b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.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.location.GetLocationRequest; diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/gapic_metadata.json b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/gapic_metadata.json rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/package-info.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/package-info.java rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/package-info.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthCallableFactory.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthCallableFactory.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthCallableFactory.java rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthCallableFactory.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthStub.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthStub.java similarity index 99% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthStub.java rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthStub.java index 970871f25b8e..e033a08a1cb5 100644 --- a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthStub.java +++ b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/GrpcServiceHealthStub.java @@ -48,7 +48,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-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthCallableFactory.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthCallableFactory.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthCallableFactory.java rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthCallableFactory.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthStub.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthStub.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthStub.java rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/HttpJsonServiceHealthStub.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStub.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStub.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStub.java rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStub.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java rename to java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json b/java-servicehealth/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json rename to java-servicehealth/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocations.java b/java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocations.java rename to java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocations.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocationsImpl.java b/java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocationsImpl.java rename to java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealth.java b/java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealth.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealth.java rename to java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealth.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealthImpl.java b/java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealthImpl.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealthImpl.java rename to java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/MockServiceHealthImpl.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientHttpJsonTest.java b/java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientHttpJsonTest.java rename to java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientHttpJsonTest.java diff --git a/owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientTest.java b/java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientTest.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientTest.java rename to java-servicehealth/google-cloud-servicehealth/src/test/java/com/google/cloud/servicehealth/v1/ServiceHealthClientTest.java diff --git a/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java b/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java new file mode 100644 index 000000000000..0b9b6972bc34 --- /dev/null +++ b/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.servicehealth.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Request service health events relevant to your Google Cloud project.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/servicehealth/v1/event_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ServiceHealthGrpc { + + private ServiceHealthGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.servicehealth.v1.ServiceHealth"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.ListEventsRequest, + com.google.cloud.servicehealth.v1.ListEventsResponse> + getListEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEvents", + requestType = com.google.cloud.servicehealth.v1.ListEventsRequest.class, + responseType = com.google.cloud.servicehealth.v1.ListEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.ListEventsRequest, + com.google.cloud.servicehealth.v1.ListEventsResponse> + getListEventsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.ListEventsRequest, + com.google.cloud.servicehealth.v1.ListEventsResponse> + getListEventsMethod; + if ((getListEventsMethod = ServiceHealthGrpc.getListEventsMethod) == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getListEventsMethod = ServiceHealthGrpc.getListEventsMethod) == null) { + ServiceHealthGrpc.getListEventsMethod = + getListEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("ListEvents")) + .build(); + } + } + } + return getListEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.GetEventRequest, + com.google.cloud.servicehealth.v1.Event> + getGetEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEvent", + requestType = com.google.cloud.servicehealth.v1.GetEventRequest.class, + responseType = com.google.cloud.servicehealth.v1.Event.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.GetEventRequest, + com.google.cloud.servicehealth.v1.Event> + getGetEventMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.GetEventRequest, + com.google.cloud.servicehealth.v1.Event> + getGetEventMethod; + if ((getGetEventMethod = ServiceHealthGrpc.getGetEventMethod) == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getGetEventMethod = ServiceHealthGrpc.getGetEventMethod) == null) { + ServiceHealthGrpc.getGetEventMethod = + getGetEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.GetEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.Event.getDefaultInstance())) + .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("GetEvent")) + .build(); + } + } + } + return getGetEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> + getListOrganizationEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrganizationEvents", + requestType = com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, + responseType = com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> + getListOrganizationEventsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> + getListOrganizationEventsMethod; + if ((getListOrganizationEventsMethod = ServiceHealthGrpc.getListOrganizationEventsMethod) + == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getListOrganizationEventsMethod = ServiceHealthGrpc.getListOrganizationEventsMethod) + == null) { + ServiceHealthGrpc.getListOrganizationEventsMethod = + getListOrganizationEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListOrganizationEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ServiceHealthMethodDescriptorSupplier("ListOrganizationEvents")) + .build(); + } + } + } + return getListOrganizationEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, + com.google.cloud.servicehealth.v1.OrganizationEvent> + getGetOrganizationEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationEvent", + requestType = com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, + responseType = com.google.cloud.servicehealth.v1.OrganizationEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, + com.google.cloud.servicehealth.v1.OrganizationEvent> + getGetOrganizationEventMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, + com.google.cloud.servicehealth.v1.OrganizationEvent> + getGetOrganizationEventMethod; + if ((getGetOrganizationEventMethod = ServiceHealthGrpc.getGetOrganizationEventMethod) == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getGetOrganizationEventMethod = ServiceHealthGrpc.getGetOrganizationEventMethod) + == null) { + ServiceHealthGrpc.getGetOrganizationEventMethod = + getGetOrganizationEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetOrganizationEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.OrganizationEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new ServiceHealthMethodDescriptorSupplier("GetOrganizationEvent")) + .build(); + } + } + } + return getGetOrganizationEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> + getListOrganizationImpactsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrganizationImpacts", + requestType = com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, + responseType = com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> + getListOrganizationImpactsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> + getListOrganizationImpactsMethod; + if ((getListOrganizationImpactsMethod = ServiceHealthGrpc.getListOrganizationImpactsMethod) + == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getListOrganizationImpactsMethod = ServiceHealthGrpc.getListOrganizationImpactsMethod) + == null) { + ServiceHealthGrpc.getListOrganizationImpactsMethod = + getListOrganizationImpactsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListOrganizationImpacts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ServiceHealthMethodDescriptorSupplier("ListOrganizationImpacts")) + .build(); + } + } + } + return getListOrganizationImpactsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, + com.google.cloud.servicehealth.v1.OrganizationImpact> + getGetOrganizationImpactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationImpact", + requestType = com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, + responseType = com.google.cloud.servicehealth.v1.OrganizationImpact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, + com.google.cloud.servicehealth.v1.OrganizationImpact> + getGetOrganizationImpactMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, + com.google.cloud.servicehealth.v1.OrganizationImpact> + getGetOrganizationImpactMethod; + if ((getGetOrganizationImpactMethod = ServiceHealthGrpc.getGetOrganizationImpactMethod) + == null) { + synchronized (ServiceHealthGrpc.class) { + if ((getGetOrganizationImpactMethod = ServiceHealthGrpc.getGetOrganizationImpactMethod) + == null) { + ServiceHealthGrpc.getGetOrganizationImpactMethod = + getGetOrganizationImpactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetOrganizationImpact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.servicehealth.v1.OrganizationImpact + .getDefaultInstance())) + .setSchemaDescriptor( + new ServiceHealthMethodDescriptorSupplier("GetOrganizationImpact")) + .build(); + } + } + } + return getGetOrganizationImpactMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ServiceHealthStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceHealthStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthStub(channel, callOptions); + } + }; + return ServiceHealthStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ServiceHealthBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceHealthBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthBlockingStub(channel, callOptions); + } + }; + return ServiceHealthBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ServiceHealthFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceHealthFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthFutureStub(channel, callOptions); + } + }; + return ServiceHealthFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists events under a given project and location.
+     * 
+ */ + default void listEvents( + com.google.cloud.servicehealth.v1.ListEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a resource containing information about an event.
+     * 
+ */ + default void getEvent( + com.google.cloud.servicehealth.v1.GetEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists organization events under a given organization and location.
+     * 
+ */ + default void listOrganizationEvents( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOrganizationEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a resource containing information about an event affecting an
+     * organization .
+     * 
+ */ + default void getOrganizationEvent( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOrganizationEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists assets impacted by organization events under a given organization and
+     * location.
+     * 
+ */ + default void listOrganizationImpacts( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOrganizationImpactsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a resource containing information about impact to an asset under
+     * an organization affected by a service health event.
+     * 
+ */ + default void getOrganizationImpact( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOrganizationImpactMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ServiceHealth. + * + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public abstract static class ServiceHealthImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ServiceHealthGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ServiceHealth. + * + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public static final class ServiceHealthStub + extends io.grpc.stub.AbstractAsyncStub { + private ServiceHealthStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceHealthStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists events under a given project and location.
+     * 
+ */ + public void listEvents( + com.google.cloud.servicehealth.v1.ListEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEventsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Retrieves a resource containing information about an event.
+     * 
+ */ + public void getEvent( + com.google.cloud.servicehealth.v1.GetEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEventMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists organization events under a given organization and location.
+     * 
+ */ + public void listOrganizationEvents( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrganizationEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a resource containing information about an event affecting an
+     * organization .
+     * 
+ */ + public void getOrganizationEvent( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists assets impacted by organization events under a given organization and
+     * location.
+     * 
+ */ + public void listOrganizationImpacts( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrganizationImpactsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a resource containing information about impact to an asset under
+     * an organization affected by a service health event.
+     * 
+ */ + public void getOrganizationImpact( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationImpactMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ServiceHealth. + * + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public static final class ServiceHealthBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ServiceHealthBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceHealthBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists events under a given project and location.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.ListEventsResponse listEvents( + com.google.cloud.servicehealth.v1.ListEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a resource containing information about an event.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.Event getEvent( + com.google.cloud.servicehealth.v1.GetEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists organization events under a given organization and location.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse listOrganizationEvents( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrganizationEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a resource containing information about an event affecting an
+     * organization .
+     * 
+ */ + public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvent( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists assets impacted by organization events under a given organization and
+     * location.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse + listOrganizationImpacts( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrganizationImpactsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a resource containing information about impact to an asset under
+     * an organization affected by a service health event.
+     * 
+ */ + public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpact( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationImpactMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ServiceHealth. + * + *
+   * Request service health events relevant to your Google Cloud project.
+   * 
+ */ + public static final class ServiceHealthFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ServiceHealthFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceHealthFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceHealthFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists events under a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.servicehealth.v1.ListEventsResponse> + listEvents(com.google.cloud.servicehealth.v1.ListEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEventsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a resource containing information about an event.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.servicehealth.v1.Event> + getEvent(com.google.cloud.servicehealth.v1.GetEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists organization events under a given organization and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse> + listOrganizationEvents( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrganizationEventsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a resource containing information about an event affecting an
+     * organization .
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.servicehealth.v1.OrganizationEvent> + getOrganizationEvent( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists assets impacted by organization events under a given organization and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse> + listOrganizationImpacts( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrganizationImpactsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a resource containing information about impact to an asset under
+     * an organization affected by a service health event.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.servicehealth.v1.OrganizationImpact> + getOrganizationImpact( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationImpactMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_EVENTS = 0; + private static final int METHODID_GET_EVENT = 1; + private static final int METHODID_LIST_ORGANIZATION_EVENTS = 2; + private static final int METHODID_GET_ORGANIZATION_EVENT = 3; + private static final int METHODID_LIST_ORGANIZATION_IMPACTS = 4; + private static final int METHODID_GET_ORGANIZATION_IMPACT = 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_EVENTS: + serviceImpl.listEvents( + (com.google.cloud.servicehealth.v1.ListEventsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_EVENT: + serviceImpl.getEvent( + (com.google.cloud.servicehealth.v1.GetEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ORGANIZATION_EVENTS: + serviceImpl.listOrganizationEvents( + (com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse>) + responseObserver); + break; + case METHODID_GET_ORGANIZATION_EVENT: + serviceImpl.getOrganizationEvent( + (com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ORGANIZATION_IMPACTS: + serviceImpl.listOrganizationImpacts( + (com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse>) + responseObserver); + break; + case METHODID_GET_ORGANIZATION_IMPACT: + serviceImpl.getOrganizationImpact( + (com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) 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( + getListEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.ListEventsRequest, + com.google.cloud.servicehealth.v1.ListEventsResponse>( + service, METHODID_LIST_EVENTS))) + .addMethod( + getGetEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.GetEventRequest, + com.google.cloud.servicehealth.v1.Event>(service, METHODID_GET_EVENT))) + .addMethod( + getListOrganizationEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse>( + service, METHODID_LIST_ORGANIZATION_EVENTS))) + .addMethod( + getGetOrganizationEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, + com.google.cloud.servicehealth.v1.OrganizationEvent>( + service, METHODID_GET_ORGANIZATION_EVENT))) + .addMethod( + getListOrganizationImpactsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse>( + service, METHODID_LIST_ORGANIZATION_IMPACTS))) + .addMethod( + getGetOrganizationImpactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, + com.google.cloud.servicehealth.v1.OrganizationImpact>( + service, METHODID_GET_ORGANIZATION_IMPACT))) + .build(); + } + + private abstract static class ServiceHealthBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ServiceHealthBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.servicehealth.v1.EventServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ServiceHealth"); + } + } + + private static final class ServiceHealthFileDescriptorSupplier + extends ServiceHealthBaseDescriptorSupplier { + ServiceHealthFileDescriptorSupplier() {} + } + + private static final class ServiceHealthMethodDescriptorSupplier + extends ServiceHealthBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ServiceHealthMethodDescriptorSupplier(java.lang.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 (ServiceHealthGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ServiceHealthFileDescriptorSupplier()) + .addMethod(getListEventsMethod()) + .addMethod(getGetEventMethod()) + .addMethod(getListOrganizationEventsMethod()) + .addMethod(getGetOrganizationEventMethod()) + .addMethod(getListOrganizationImpactsMethod()) + .addMethod(getGetOrganizationImpactMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java similarity index 70% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java index 5038f388b812..c215fef3101e 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Asset.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,21 +20,24 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * Represents the asset impacted by the events.
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Asset} */ -public final class Asset extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Asset extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.Asset) AssetOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Asset.newBuilder() to construct. private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Asset() { assetName_ = ""; assetType_ = ""; @@ -27,28 +45,32 @@ private Asset() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Asset(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Asset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Asset.class, com.google.cloud.servicehealth.v1.Asset.Builder.class); + com.google.cloud.servicehealth.v1.Asset.class, + com.google.cloud.servicehealth.v1.Asset.Builder.class); } public static final int ASSET_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object assetName_ = ""; /** + * + * *
    * Output only. Full name of the resource as defined in
    * [Resource
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The assetName. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getAssetName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetName_ = s; return s; } } /** + * + * *
    * Output only. Full name of the resource as defined in
    * [Resource
@@ -79,16 +103,15 @@ public java.lang.String getAssetName() {
    * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for assetName. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetNameBytes() { + public com.google.protobuf.ByteString getAssetNameBytes() { java.lang.Object ref = assetName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetName_ = b; return b; } else { @@ -97,15 +120,19 @@ public java.lang.String getAssetName() { } public static final int ASSET_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object assetType_ = ""; /** + * + * *
    * Output only. Type of the asset. Example:
    * `"cloudresourcemanager.googleapis.com/Project"`
    * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The assetType. */ @java.lang.Override @@ -114,30 +141,30 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
    * Output only. Type of the asset. Example:
    * `"cloudresourcemanager.googleapis.com/Project"`
    * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -146,6 +173,7 @@ public java.lang.String getAssetType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetName_); } @@ -188,17 +215,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.cloud.servicehealth.v1.Asset)) { return super.equals(obj); } com.google.cloud.servicehealth.v1.Asset other = (com.google.cloud.servicehealth.v1.Asset) obj; - if (!getAssetName() - .equals(other.getAssetName())) return false; - if (!getAssetType() - .equals(other.getAssetType())) return false; + if (!getAssetName().equals(other.getAssetName())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -219,132 +244,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.Asset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.Asset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Asset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.Asset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 asset impacted by the events.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Asset} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.Asset) com.google.cloud.servicehealth.v1.AssetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Asset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Asset.class, com.google.cloud.servicehealth.v1.Asset.Builder.class); + com.google.cloud.servicehealth.v1.Asset.class, + com.google.cloud.servicehealth.v1.Asset.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.Asset.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(); @@ -355,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Asset_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Asset_descriptor; } @java.lang.Override @@ -376,8 +405,11 @@ public com.google.cloud.servicehealth.v1.Asset build() { @java.lang.Override public com.google.cloud.servicehealth.v1.Asset buildPartial() { - com.google.cloud.servicehealth.v1.Asset result = new com.google.cloud.servicehealth.v1.Asset(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.Asset result = + new com.google.cloud.servicehealth.v1.Asset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -396,38 +428,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Asset 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.cloud.servicehealth.v1.Asset) { - return mergeFrom((com.google.cloud.servicehealth.v1.Asset)other); + return mergeFrom((com.google.cloud.servicehealth.v1.Asset) other); } else { super.mergeFrom(other); return this; @@ -472,22 +505,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - assetName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - assetType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + assetName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + assetType_ = 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) { @@ -497,10 +533,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object assetName_ = ""; /** + * + * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -508,13 +547,13 @@ public Builder mergeFrom(
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The assetName. */ public java.lang.String getAssetName() { java.lang.Object ref = assetName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetName_ = s; return s; @@ -523,6 +562,8 @@ public java.lang.String getAssetName() { } } /** + * + * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -530,15 +571,14 @@ public java.lang.String getAssetName() {
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for assetName. */ - public com.google.protobuf.ByteString - getAssetNameBytes() { + public com.google.protobuf.ByteString getAssetNameBytes() { java.lang.Object ref = assetName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetName_ = b; return b; } else { @@ -546,6 +586,8 @@ public java.lang.String getAssetName() { } } /** + * + * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -553,18 +595,22 @@ public java.lang.String getAssetName() {
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The assetName to set. * @return This builder for chaining. */ - public Builder setAssetName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAssetName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } assetName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -572,6 +618,7 @@ public Builder setAssetName(
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearAssetName() { @@ -581,6 +628,8 @@ public Builder clearAssetName() { return this; } /** + * + * *
      * Output only. Full name of the resource as defined in
      * [Resource
@@ -588,12 +637,14 @@ public Builder clearAssetName() {
      * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for assetName to set. * @return This builder for chaining. */ - public Builder setAssetNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAssetNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); assetName_ = value; bitField0_ |= 0x00000001; @@ -603,19 +654,21 @@ public Builder setAssetNameBytes( private java.lang.Object assetType_ = ""; /** + * + * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -624,21 +677,22 @@ public java.lang.String getAssetType() { } } /** + * + * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -646,30 +700,37 @@ public java.lang.String getAssetType() { } } /** + * + * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAssetType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } assetType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearAssetType() { @@ -679,27 +740,31 @@ public Builder clearAssetType() { return this; } /** + * + * *
      * Output only. Type of the asset. Example:
      * `"cloudresourcemanager.googleapis.com/Project"`
      * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); assetType_ = 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); } @@ -709,12 +774,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.Asset) private static final com.google.cloud.servicehealth.v1.Asset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.Asset(); } @@ -723,27 +788,27 @@ public static com.google.cloud.servicehealth.v1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,6 +823,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java similarity index 65% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java index 894515b796eb..45bf05049823 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/AssetOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface AssetOrBuilder extends +public interface AssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.Asset) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Full name of the resource as defined in
    * [Resource
@@ -16,10 +34,13 @@ public interface AssetOrBuilder extends
    * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The assetName. */ java.lang.String getAssetName(); /** + * + * *
    * Output only. Full name of the resource as defined in
    * [Resource
@@ -27,30 +48,35 @@ public interface AssetOrBuilder extends
    * 
* * string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for assetName. */ - com.google.protobuf.ByteString - getAssetNameBytes(); + com.google.protobuf.ByteString getAssetNameBytes(); /** + * + * *
    * Output only. Type of the asset. Example:
    * `"cloudresourcemanager.googleapis.com/Project"`
    * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
    * Output only. Type of the asset. Example:
    * `"cloudresourcemanager.googleapis.com/Project"`
    * 
* * string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java similarity index 68% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java index 226e3293f7b6..7d0dc993ee0d 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Event.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,6 +20,8 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * Represents service health events that may affect Google Cloud products.
  * Event resource is a read-only view and does not allow any modifications. All
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.servicehealth.v1.Event}
  */
-public final class Event extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Event extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.Event)
     EventOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Event.newBuilder() to construct.
   private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Event() {
     name_ = "";
     title_ = "";
@@ -38,25 +56,28 @@ private Event() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Event();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.servicehealth.v1.EventResourcesProto
+        .internal_static_google_cloud_servicehealth_v1_Event_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable
+    return com.google.cloud.servicehealth.v1.EventResourcesProto
+        .internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.servicehealth.v1.Event.class, com.google.cloud.servicehealth.v1.Event.Builder.class);
+            com.google.cloud.servicehealth.v1.Event.class,
+            com.google.cloud.servicehealth.v1.Event.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The category of the event. This enum lists all possible categories of
    * event.
@@ -64,9 +85,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.Event.EventCategory}
    */
-  public enum EventCategory
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified category.
      * 
@@ -75,6 +97,8 @@ public enum EventCategory */ EVENT_CATEGORY_UNSPECIFIED(0), /** + * + * *
      * Event category for service outage or degradation.
      * 
@@ -86,6 +110,8 @@ public enum EventCategory ; /** + * + * *
      * Unspecified category.
      * 
@@ -94,6 +120,8 @@ public enum EventCategory */ public static final int EVENT_CATEGORY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Event category for service outage or degradation.
      * 
@@ -102,7 +130,6 @@ public enum EventCategory */ public static final int INCIDENT_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -127,48 +154,47 @@ public static EventCategory valueOf(int value) { */ public static EventCategory forNumber(int value) { switch (value) { - case 0: return EVENT_CATEGORY_UNSPECIFIED; - case 2: return INCIDENT; - default: return null; + case 0: + return EVENT_CATEGORY_UNSPECIFIED; + case 2: + return INCIDENT; + 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< - EventCategory> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventCategory findValueByNumber(int number) { - return EventCategory.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 EventCategory findValueByNumber(int number) { + return EventCategory.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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(0); } private static final EventCategory[] VALUES = values(); - public static EventCategory valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventCategory 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; @@ -186,6 +212,8 @@ private EventCategory(int value) { } /** + * + * *
    * The detailed category of an event. Contains all possible states for all
    * event categories.
@@ -193,9 +221,10 @@ private EventCategory(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.Event.DetailedCategory}
    */
-  public enum DetailedCategory
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified detailed category.
      * 
@@ -204,6 +233,8 @@ public enum DetailedCategory */ DETAILED_CATEGORY_UNSPECIFIED(0), /** + * + * *
      * Indicates an event with category INCIDENT has a confirmed impact to at
      * least one Google Cloud product.
@@ -213,6 +244,8 @@ public enum DetailedCategory
      */
     CONFIRMED_INCIDENT(1),
     /**
+     *
+     *
      * 
      * Indicates an event with category INCIDENT is under investigation to
      * determine if it has a confirmed impact on any Google Cloud products.
@@ -225,6 +258,8 @@ public enum DetailedCategory
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified detailed category.
      * 
@@ -233,6 +268,8 @@ public enum DetailedCategory */ public static final int DETAILED_CATEGORY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates an event with category INCIDENT has a confirmed impact to at
      * least one Google Cloud product.
@@ -242,6 +279,8 @@ public enum DetailedCategory
      */
     public static final int CONFIRMED_INCIDENT_VALUE = 1;
     /**
+     *
+     *
      * 
      * Indicates an event with category INCIDENT is under investigation to
      * determine if it has a confirmed impact on any Google Cloud products.
@@ -251,7 +290,6 @@ public enum DetailedCategory
      */
     public static final int EMERGING_INCIDENT_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -276,39 +314,42 @@ public static DetailedCategory valueOf(int value) {
      */
     public static DetailedCategory forNumber(int value) {
       switch (value) {
-        case 0: return DETAILED_CATEGORY_UNSPECIFIED;
-        case 1: return CONFIRMED_INCIDENT;
-        case 2: return EMERGING_INCIDENT;
-        default: return null;
+        case 0:
+          return DETAILED_CATEGORY_UNSPECIFIED;
+        case 1:
+          return CONFIRMED_INCIDENT;
+        case 2:
+          return EMERGING_INCIDENT;
+        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<
-        DetailedCategory> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public DetailedCategory findValueByNumber(int number) {
-              return DetailedCategory.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 DetailedCategory findValueByNumber(int number) {
+                return DetailedCategory.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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -317,8 +358,7 @@ public DetailedCategory findValueByNumber(int number) {
     public static DetailedCategory 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;
@@ -336,15 +376,18 @@ private DetailedCategory(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The state of the event. This enum lists all possible states of event.
    * 
* * Protobuf enum {@code google.cloud.servicehealth.v1.Event.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.
      * 
@@ -353,6 +396,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Event is actively affecting a Google Cloud product and will continue to
      * receive updates.
@@ -362,6 +407,8 @@ public enum State
      */
     ACTIVE(1),
     /**
+     *
+     *
      * 
      * Event is no longer affecting the Google Cloud product or has been merged
      * with another event.
@@ -374,6 +421,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified state.
      * 
@@ -382,6 +431,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Event is actively affecting a Google Cloud product and will continue to
      * receive updates.
@@ -391,6 +442,8 @@ public enum State
      */
     public static final int ACTIVE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Event is no longer affecting the Google Cloud product or has been merged
      * with another event.
@@ -400,7 +453,6 @@ public enum State
      */
     public static final int CLOSED_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -425,49 +477,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return CLOSED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return CLOSED;
+        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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(2);
     }
 
     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;
@@ -485,6 +537,8 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The detailed state of the incident. This enum lists all possible detailed
    * states of an incident.
@@ -492,9 +546,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.Event.DetailedState}
    */
-  public enum DetailedState
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified detail state.
      * 
@@ -503,6 +558,8 @@ public enum DetailedState */ DETAILED_STATE_UNSPECIFIED(0), /** + * + * *
      * Google engineers are actively investigating the event to determine the
      * impact.
@@ -512,6 +569,8 @@ public enum DetailedState
      */
     EMERGING(1),
     /**
+     *
+     *
      * 
      * The incident is confirmed and impacting at least one Google Cloud
      * product. Ongoing status updates will be provided until it is resolved.
@@ -521,6 +580,8 @@ public enum DetailedState
      */
     CONFIRMED(2),
     /**
+     *
+     *
      * 
      * The incident is no longer affecting any Google Cloud product, and there
      * will be no further updates.
@@ -530,6 +591,8 @@ public enum DetailedState
      */
     RESOLVED(3),
     /**
+     *
+     *
      * 
      * The incident was merged into a parent incident. All further updates will
      * be published to the parent only. The `parent_event` field contains the
@@ -540,6 +603,8 @@ public enum DetailedState
      */
     MERGED(4),
     /**
+     *
+     *
      * 
      * The incident was automatically closed because of the following reasons:
      *
@@ -554,6 +619,8 @@ public enum DetailedState
      */
     AUTO_CLOSED(9),
     /**
+     *
+     *
      * 
      * Upon investigation, Google engineers concluded that the incident is not
      * affecting a Google Cloud product. This state can change if the incident
@@ -567,6 +634,8 @@ public enum DetailedState
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified detail state.
      * 
@@ -575,6 +644,8 @@ public enum DetailedState */ public static final int DETAILED_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Google engineers are actively investigating the event to determine the
      * impact.
@@ -584,6 +655,8 @@ public enum DetailedState
      */
     public static final int EMERGING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The incident is confirmed and impacting at least one Google Cloud
      * product. Ongoing status updates will be provided until it is resolved.
@@ -593,6 +666,8 @@ public enum DetailedState
      */
     public static final int CONFIRMED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The incident is no longer affecting any Google Cloud product, and there
      * will be no further updates.
@@ -602,6 +677,8 @@ public enum DetailedState
      */
     public static final int RESOLVED_VALUE = 3;
     /**
+     *
+     *
      * 
      * The incident was merged into a parent incident. All further updates will
      * be published to the parent only. The `parent_event` field contains the
@@ -612,6 +689,8 @@ public enum DetailedState
      */
     public static final int MERGED_VALUE = 4;
     /**
+     *
+     *
      * 
      * The incident was automatically closed because of the following reasons:
      *
@@ -626,6 +705,8 @@ public enum DetailedState
      */
     public static final int AUTO_CLOSED_VALUE = 9;
     /**
+     *
+     *
      * 
      * Upon investigation, Google engineers concluded that the incident is not
      * affecting a Google Cloud product. This state can change if the incident
@@ -636,7 +717,6 @@ public enum DetailedState
      */
     public static final int FALSE_POSITIVE_VALUE = 10;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -661,53 +741,57 @@ public static DetailedState valueOf(int value) {
      */
     public static DetailedState forNumber(int value) {
       switch (value) {
-        case 0: return DETAILED_STATE_UNSPECIFIED;
-        case 1: return EMERGING;
-        case 2: return CONFIRMED;
-        case 3: return RESOLVED;
-        case 4: return MERGED;
-        case 9: return AUTO_CLOSED;
-        case 10: return FALSE_POSITIVE;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return DETAILED_STATE_UNSPECIFIED;
+        case 1:
+          return EMERGING;
+        case 2:
+          return CONFIRMED;
+        case 3:
+          return RESOLVED;
+        case 4:
+          return MERGED;
+        case 9:
+          return AUTO_CLOSED;
+        case 10:
+          return FALSE_POSITIVE;
+        default:
+          return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        DetailedState> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public DetailedState findValueByNumber(int number) {
-              return DetailedState.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 DetailedState findValueByNumber(int number) {
+            return DetailedState.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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(3);
     }
 
     private static final DetailedState[] VALUES = values();
 
-    public static DetailedState valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static DetailedState 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;
@@ -725,6 +809,8 @@ private DetailedState(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Communicates why a given incident is deemed relevant in the context of a
    * given project. This enum lists all possible detailed states of relevance.
@@ -732,9 +818,10 @@ private DetailedState(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.Event.Relevance}
    */
-  public enum Relevance
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Relevance implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified relevance.
      * 
@@ -743,6 +830,8 @@ public enum Relevance */ RELEVANCE_UNSPECIFIED(0), /** + * + * *
      * The relevance of the incident to the project is unknown.
      * 
@@ -751,6 +840,8 @@ public enum Relevance */ UNKNOWN(2), /** + * + * *
      * The incident does not impact the project.
      * 
@@ -759,6 +850,8 @@ public enum Relevance */ NOT_IMPACTED(6), /** + * + * *
      * The incident is associated with a Google Cloud product your project uses,
      * but the incident may not be impacting your project. For example, the
@@ -770,6 +863,8 @@ public enum Relevance
      */
     PARTIALLY_RELATED(7),
     /**
+     *
+     *
      * 
      * The incident has a direct connection with your project and impacts a
      * Google Cloud product in a location your project uses.
@@ -779,6 +874,8 @@ public enum Relevance
      */
     RELATED(8),
     /**
+     *
+     *
      * 
      * The incident is verified to be impacting your project.
      * 
@@ -790,6 +887,8 @@ public enum Relevance ; /** + * + * *
      * Unspecified relevance.
      * 
@@ -798,6 +897,8 @@ public enum Relevance */ public static final int RELEVANCE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The relevance of the incident to the project is unknown.
      * 
@@ -806,6 +907,8 @@ public enum Relevance */ public static final int UNKNOWN_VALUE = 2; /** + * + * *
      * The incident does not impact the project.
      * 
@@ -814,6 +917,8 @@ public enum Relevance */ public static final int NOT_IMPACTED_VALUE = 6; /** + * + * *
      * The incident is associated with a Google Cloud product your project uses,
      * but the incident may not be impacting your project. For example, the
@@ -825,6 +930,8 @@ public enum Relevance
      */
     public static final int PARTIALLY_RELATED_VALUE = 7;
     /**
+     *
+     *
      * 
      * The incident has a direct connection with your project and impacts a
      * Google Cloud product in a location your project uses.
@@ -834,6 +941,8 @@ public enum Relevance
      */
     public static final int RELATED_VALUE = 8;
     /**
+     *
+     *
      * 
      * The incident is verified to be impacting your project.
      * 
@@ -842,7 +951,6 @@ public enum Relevance */ public static final int IMPACTED_VALUE = 9; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -867,52 +975,55 @@ public static Relevance valueOf(int value) { */ public static Relevance forNumber(int value) { switch (value) { - case 0: return RELEVANCE_UNSPECIFIED; - case 2: return UNKNOWN; - case 6: return NOT_IMPACTED; - case 7: return PARTIALLY_RELATED; - case 8: return RELATED; - case 9: return IMPACTED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return RELEVANCE_UNSPECIFIED; + case 2: + return UNKNOWN; + case 6: + return NOT_IMPACTED; + case 7: + return PARTIALLY_RELATED; + case 8: + return RELATED; + case 9: + return IMPACTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Relevance> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Relevance findValueByNumber(int number) { - return Relevance.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 Relevance findValueByNumber(int number) { + return Relevance.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.cloud.servicehealth.v1.Event.getDescriptor().getEnumTypes().get(4); } private static final Relevance[] VALUES = values(); - public static Relevance valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Relevance 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; @@ -931,16 +1042,22 @@ private Relevance(int value) { private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including project and location using the form
    * `projects/{project_id}/locations/{location}/events/{event_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The name. */ @java.lang.Override @@ -949,31 +1066,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; } } /** + * + * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including project and location using the form
    * `projects/{project_id}/locations/{location}/events/{event_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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 { @@ -982,14 +1101,18 @@ public java.lang.String getName() { } public static final int TITLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** + * + * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The title. */ @java.lang.Override @@ -998,29 +1121,29 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** + * + * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -1029,14 +1152,18 @@ public java.lang.String getTitle() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ @java.lang.Override @@ -1045,29 +1172,29 @@ 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; } } /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1078,111 +1205,172 @@ public java.lang.String getDescription() { public static final int CATEGORY_FIELD_NUMBER = 4; private int category_ = 0; /** + * + * *
    * Output only. The category of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for category. */ - @java.lang.Override public int getCategoryValue() { + @java.lang.Override + public int getCategoryValue() { return category_; } /** + * + * *
    * Output only. The category of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The category. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.Event.EventCategory getCategory() { - com.google.cloud.servicehealth.v1.Event.EventCategory result = com.google.cloud.servicehealth.v1.Event.EventCategory.forNumber(category_); - return result == null ? com.google.cloud.servicehealth.v1.Event.EventCategory.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.servicehealth.v1.Event.EventCategory getCategory() { + com.google.cloud.servicehealth.v1.Event.EventCategory result = + com.google.cloud.servicehealth.v1.Event.EventCategory.forNumber(category_); + return result == null + ? com.google.cloud.servicehealth.v1.Event.EventCategory.UNRECOGNIZED + : result; } public static final int DETAILED_CATEGORY_FIELD_NUMBER = 21; private int detailedCategory_ = 0; /** + * + * *
    * Output only. The detailed category of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedCategory. */ - @java.lang.Override public int getDetailedCategoryValue() { + @java.lang.Override + public int getDetailedCategoryValue() { return detailedCategory_; } /** + * + * *
    * Output only. The detailed category of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedCategory. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.Event.DetailedCategory getDetailedCategory() { - com.google.cloud.servicehealth.v1.Event.DetailedCategory result = com.google.cloud.servicehealth.v1.Event.DetailedCategory.forNumber(detailedCategory_); - return result == null ? com.google.cloud.servicehealth.v1.Event.DetailedCategory.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.servicehealth.v1.Event.DetailedCategory getDetailedCategory() { + com.google.cloud.servicehealth.v1.Event.DetailedCategory result = + com.google.cloud.servicehealth.v1.Event.DetailedCategory.forNumber(detailedCategory_); + return result == null + ? com.google.cloud.servicehealth.v1.Event.DetailedCategory.UNRECOGNIZED + : result; } public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** + * + * *
    * Output only. The current state of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.Event.State getState() { - com.google.cloud.servicehealth.v1.Event.State result = com.google.cloud.servicehealth.v1.Event.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.servicehealth.v1.Event.State getState() { + com.google.cloud.servicehealth.v1.Event.State result = + com.google.cloud.servicehealth.v1.Event.State.forNumber(state_); return result == null ? com.google.cloud.servicehealth.v1.Event.State.UNRECOGNIZED : result; } public static final int DETAILED_STATE_FIELD_NUMBER = 19; private int detailedState_ = 0; /** + * + * *
    * Output only. The current detailed state of the incident.
    * 
* - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedState. */ - @java.lang.Override public int getDetailedStateValue() { + @java.lang.Override + public int getDetailedStateValue() { return detailedState_; } /** + * + * *
    * Output only. The current detailed state of the incident.
    * 
* - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedState. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.Event.DetailedState getDetailedState() { - com.google.cloud.servicehealth.v1.Event.DetailedState result = com.google.cloud.servicehealth.v1.Event.DetailedState.forNumber(detailedState_); - return result == null ? com.google.cloud.servicehealth.v1.Event.DetailedState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.servicehealth.v1.Event.DetailedState getDetailedState() { + com.google.cloud.servicehealth.v1.Event.DetailedState result = + com.google.cloud.servicehealth.v1.Event.DetailedState.forNumber(detailedState_); + return result == null + ? com.google.cloud.servicehealth.v1.Event.DetailedState.UNRECOGNIZED + : result; } public static final int EVENT_IMPACTS_FIELD_NUMBER = 20; + @SuppressWarnings("serial") private java.util.List eventImpacts_; /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1194,6 +1382,8 @@ public java.util.List getEventImp return eventImpacts_; } /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1201,11 +1391,13 @@ public java.util.List getEventImp * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ @java.lang.Override - public java.util.List + public java.util.List getEventImpactsOrBuilderList() { return eventImpacts_; } /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1217,6 +1409,8 @@ public int getEventImpactsCount() { return eventImpacts_.size(); } /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1228,6 +1422,8 @@ public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) return eventImpacts_.get(index); } /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -1243,96 +1439,132 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB public static final int RELEVANCE_FIELD_NUMBER = 8; private int relevance_ = 0; /** + * + * *
    * Output only. Communicates why a given event is deemed relevant in the
    * context of a given project.
    * 
* - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override public int getRelevanceValue() { + @java.lang.Override + public int getRelevanceValue() { return relevance_; } /** + * + * *
    * Output only. Communicates why a given event is deemed relevant in the
    * context of a given project.
    * 
* - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The relevance. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.Event.Relevance getRelevance() { - com.google.cloud.servicehealth.v1.Event.Relevance result = com.google.cloud.servicehealth.v1.Event.Relevance.forNumber(relevance_); + @java.lang.Override + public com.google.cloud.servicehealth.v1.Event.Relevance getRelevance() { + com.google.cloud.servicehealth.v1.Event.Relevance result = + com.google.cloud.servicehealth.v1.Event.Relevance.forNumber(relevance_); return result == null ? com.google.cloud.servicehealth.v1.Event.Relevance.UNRECOGNIZED : result; } public static final int UPDATES_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List updates_; /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getUpdatesList() { return updates_; } /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getUpdatesOrBuilderList() { return updates_; } /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getUpdatesCount() { return updates_.size(); } /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { return updates_.get(index); } /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index) { return updates_.get(index); } public static final int PARENT_EVENT_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object parentEvent_ = ""; /** + * + * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -1340,6 +1572,7 @@ public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilde
    * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parentEvent. */ @java.lang.Override @@ -1348,14 +1581,15 @@ public java.lang.String getParentEvent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentEvent_ = s; return s; } } /** + * + * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -1363,16 +1597,15 @@ public java.lang.String getParentEvent() {
    * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for parentEvent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentEventBytes() { + public com.google.protobuf.ByteString getParentEventBytes() { java.lang.Object ref = parentEvent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentEvent_ = b; return b; } else { @@ -1383,11 +1616,15 @@ public java.lang.String getParentEvent() { public static final int UPDATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1395,11 +1632,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1407,11 +1648,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1421,11 +1665,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -1433,11 +1681,15 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -1445,11 +1697,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -1459,11 +1714,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1471,11 +1730,15 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -1483,11 +1746,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1497,11 +1763,16 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int NEXT_UPDATE_TIME_FIELD_NUMBER = 15; private com.google.protobuf.Timestamp nextUpdateTime_; /** + * + * *
    * Output only. The time when the next update can be expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the nextUpdateTime field is set. */ @java.lang.Override @@ -1509,30 +1780,44 @@ public boolean hasNextUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
    * Output only. The time when the next update can be expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The nextUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextUpdateTime() { - return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; + return nextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextUpdateTime_; } /** + * + * *
    * Output only. The time when the next update can be expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder() { - return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; + return nextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextUpdateTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1544,8 +1829,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_); } @@ -1555,13 +1839,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } - if (category_ != com.google.cloud.servicehealth.v1.Event.EventCategory.EVENT_CATEGORY_UNSPECIFIED.getNumber()) { + if (category_ + != com.google.cloud.servicehealth.v1.Event.EventCategory.EVENT_CATEGORY_UNSPECIFIED + .getNumber()) { output.writeEnum(4, category_); } if (state_ != com.google.cloud.servicehealth.v1.Event.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } - if (relevance_ != com.google.cloud.servicehealth.v1.Event.Relevance.RELEVANCE_UNSPECIFIED.getNumber()) { + if (relevance_ + != com.google.cloud.servicehealth.v1.Event.Relevance.RELEVANCE_UNSPECIFIED.getNumber()) { output.writeEnum(8, relevance_); } for (int i = 0; i < updates_.size(); i++) { @@ -1582,13 +1869,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(15, getNextUpdateTime()); } - if (detailedState_ != com.google.cloud.servicehealth.v1.Event.DetailedState.DETAILED_STATE_UNSPECIFIED.getNumber()) { + if (detailedState_ + != com.google.cloud.servicehealth.v1.Event.DetailedState.DETAILED_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(19, detailedState_); } for (int i = 0; i < eventImpacts_.size(); i++) { output.writeMessage(20, eventImpacts_.get(i)); } - if (detailedCategory_ != com.google.cloud.servicehealth.v1.Event.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED.getNumber()) { + if (detailedCategory_ + != com.google.cloud.servicehealth.v1.Event.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED + .getNumber()) { output.writeEnum(21, detailedCategory_); } getUnknownFields().writeTo(output); @@ -1609,52 +1900,48 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } - if (category_ != com.google.cloud.servicehealth.v1.Event.EventCategory.EVENT_CATEGORY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, category_); + if (category_ + != com.google.cloud.servicehealth.v1.Event.EventCategory.EVENT_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, category_); } if (state_ != com.google.cloud.servicehealth.v1.Event.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } - if (relevance_ != com.google.cloud.servicehealth.v1.Event.Relevance.RELEVANCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, relevance_); + if (relevance_ + != com.google.cloud.servicehealth.v1.Event.Relevance.RELEVANCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, relevance_); } for (int i = 0; i < updates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, updates_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, updates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEvent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, parentEvent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getStartTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getEndTime()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getNextUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getNextUpdateTime()); } - if (detailedState_ != com.google.cloud.servicehealth.v1.Event.DetailedState.DETAILED_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(19, detailedState_); + if (detailedState_ + != com.google.cloud.servicehealth.v1.Event.DetailedState.DETAILED_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, detailedState_); } for (int i = 0; i < eventImpacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, eventImpacts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, eventImpacts_.get(i)); } - if (detailedCategory_ != com.google.cloud.servicehealth.v1.Event.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(21, detailedCategory_); + if (detailedCategory_ + != com.google.cloud.servicehealth.v1.Event.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, detailedCategory_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1664,49 +1951,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.cloud.servicehealth.v1.Event)) { return super.equals(obj); } com.google.cloud.servicehealth.v1.Event other = (com.google.cloud.servicehealth.v1.Event) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (category_ != other.category_) return false; if (detailedCategory_ != other.detailedCategory_) return false; if (state_ != other.state_) return false; if (detailedState_ != other.detailedState_) return false; - if (!getEventImpactsList() - .equals(other.getEventImpactsList())) return false; + if (!getEventImpactsList().equals(other.getEventImpactsList())) return false; if (relevance_ != other.relevance_) return false; - if (!getUpdatesList() - .equals(other.getUpdatesList())) return false; - if (!getParentEvent() - .equals(other.getParentEvent())) return false; + if (!getUpdatesList().equals(other.getUpdatesList())) return false; + if (!getParentEvent().equals(other.getParentEvent())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) 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 (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (hasNextUpdateTime() != other.hasNextUpdateTime()) return false; if (hasNextUpdateTime()) { - if (!getNextUpdateTime() - .equals(other.getNextUpdateTime())) return false; + if (!getNextUpdateTime().equals(other.getNextUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1766,99 +2043,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.Event parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.Event parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.Event parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 service health events that may affect Google Cloud products.
    * Event resource is a read-only view and does not allow any modifications. All
@@ -1867,21 +2149,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.servicehealth.v1.Event}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.Event)
       com.google.cloud.servicehealth.v1.EventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto
+          .internal_static_google_cloud_servicehealth_v1_Event_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable
+      return com.google.cloud.servicehealth.v1.EventResourcesProto
+          .internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.servicehealth.v1.Event.class, com.google.cloud.servicehealth.v1.Event.Builder.class);
+              com.google.cloud.servicehealth.v1.Event.class,
+              com.google.cloud.servicehealth.v1.Event.Builder.class);
     }
 
     // Construct using com.google.cloud.servicehealth.v1.Event.newBuilder()
@@ -1889,14 +2173,13 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getEventImpactsFieldBuilder();
         getUpdatesFieldBuilder();
         getUpdateTimeFieldBuilder();
@@ -1905,6 +2188,7 @@ private void maybeForceBuilderInitialization() {
         getNextUpdateTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1956,9 +2240,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Event_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto
+          .internal_static_google_cloud_servicehealth_v1_Event_descriptor;
     }
 
     @java.lang.Override
@@ -1977,9 +2261,12 @@ public com.google.cloud.servicehealth.v1.Event build() {
 
     @java.lang.Override
     public com.google.cloud.servicehealth.v1.Event buildPartial() {
-      com.google.cloud.servicehealth.v1.Event result = new com.google.cloud.servicehealth.v1.Event(this);
+      com.google.cloud.servicehealth.v1.Event result =
+          new com.google.cloud.servicehealth.v1.Event(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -2036,27 +2323,20 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Event result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
         to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.nextUpdateTime_ = nextUpdateTimeBuilder_ == null
-            ? nextUpdateTime_
-            : nextUpdateTimeBuilder_.build();
+        result.nextUpdateTime_ =
+            nextUpdateTimeBuilder_ == null ? nextUpdateTime_ : nextUpdateTimeBuilder_.build();
         to_bitField0_ |= 0x00000008;
       }
       result.bitField0_ |= to_bitField0_;
@@ -2066,38 +2346,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Event 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.cloud.servicehealth.v1.Event) {
-        return mergeFrom((com.google.cloud.servicehealth.v1.Event)other);
+        return mergeFrom((com.google.cloud.servicehealth.v1.Event) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2151,9 +2432,10 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.Event other) {
             eventImpactsBuilder_ = null;
             eventImpacts_ = other.eventImpacts_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            eventImpactsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEventImpactsFieldBuilder() : null;
+            eventImpactsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEventImpactsFieldBuilder()
+                    : null;
           } else {
             eventImpactsBuilder_.addAllMessages(other.eventImpacts_);
           }
@@ -2180,9 +2462,10 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.Event other) {
             updatesBuilder_ = null;
             updates_ = other.updates_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            updatesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getUpdatesFieldBuilder() : null;
+            updatesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getUpdatesFieldBuilder()
+                    : null;
           } else {
             updatesBuilder_.addAllMessages(other.updates_);
           }
@@ -2231,111 +2514,117 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              title_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              category_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 40
-            case 64: {
-              relevance_ = input.readEnum();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 64
-            case 74: {
-              com.google.cloud.servicehealth.v1.EventUpdate m =
-                  input.readMessage(
-                      com.google.cloud.servicehealth.v1.EventUpdate.parser(),
-                      extensionRegistry);
-              if (updatesBuilder_ == null) {
-                ensureUpdatesIsMutable();
-                updates_.add(m);
-              } else {
-                updatesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 74
-            case 82: {
-              parentEvent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 98: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 114
-            case 122: {
-              input.readMessage(
-                  getNextUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 122
-            case 152: {
-              detailedState_ = input.readEnum();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 152
-            case 162: {
-              com.google.cloud.servicehealth.v1.EventImpact m =
-                  input.readMessage(
-                      com.google.cloud.servicehealth.v1.EventImpact.parser(),
-                      extensionRegistry);
-              if (eventImpactsBuilder_ == null) {
-                ensureEventImpactsIsMutable();
-                eventImpacts_.add(m);
-              } else {
-                eventImpactsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 162
-            case 168: {
-              detailedCategory_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 168
-            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:
+              {
+                title_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                category_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 40
+            case 64:
+              {
+                relevance_ = input.readEnum();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 64
+            case 74:
+              {
+                com.google.cloud.servicehealth.v1.EventUpdate m =
+                    input.readMessage(
+                        com.google.cloud.servicehealth.v1.EventUpdate.parser(), extensionRegistry);
+                if (updatesBuilder_ == null) {
+                  ensureUpdatesIsMutable();
+                  updates_.add(m);
+                } else {
+                  updatesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 74
+            case 82:
+              {
+                parentEvent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 98:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 114
+            case 122:
+              {
+                input.readMessage(getNextUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 122
+            case 152:
+              {
+                detailedState_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 152
+            case 162:
+              {
+                com.google.cloud.servicehealth.v1.EventImpact m =
+                    input.readMessage(
+                        com.google.cloud.servicehealth.v1.EventImpact.parser(), extensionRegistry);
+                if (eventImpactsBuilder_ == null) {
+                  ensureEventImpactsIsMutable();
+                  eventImpacts_.add(m);
+                } else {
+                  eventImpactsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 162
+            case 168:
+              {
+                detailedCategory_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 168
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2345,24 +2634,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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; @@ -2371,22 +2665,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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 { @@ -2394,32 +2691,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -2429,19 +2737,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including project and location using the form
      * `projects/{project_id}/locations/{location}/events/{event_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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; @@ -2451,18 +2765,20 @@ public Builder setNameBytes( private java.lang.Object title_ = ""; /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -2471,20 +2787,21 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -2492,28 +2809,35 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTitle() { @@ -2523,17 +2847,21 @@ public Builder clearTitle() { return this; } /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000002; @@ -2543,18 +2871,20 @@ public Builder setTitleBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2563,20 +2893,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2584,28 +2915,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2615,17 +2953,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000004; @@ -2635,22 +2977,33 @@ public Builder setDescriptionBytes( private int category_ = 0; /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for category. */ - @java.lang.Override public int getCategoryValue() { + @java.lang.Override + public int getCategoryValue() { return category_; } /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for category to set. * @return This builder for chaining. */ @@ -2661,24 +3014,37 @@ public Builder setCategoryValue(int value) { return this; } /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The category. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.EventCategory getCategory() { - com.google.cloud.servicehealth.v1.Event.EventCategory result = com.google.cloud.servicehealth.v1.Event.EventCategory.forNumber(category_); - return result == null ? com.google.cloud.servicehealth.v1.Event.EventCategory.UNRECOGNIZED : result; + com.google.cloud.servicehealth.v1.Event.EventCategory result = + com.google.cloud.servicehealth.v1.Event.EventCategory.forNumber(category_); + return result == null + ? com.google.cloud.servicehealth.v1.Event.EventCategory.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The category to set. * @return This builder for chaining. */ @@ -2692,11 +3058,16 @@ public Builder setCategory(com.google.cloud.servicehealth.v1.Event.EventCategory return this; } /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearCategory() { @@ -2708,22 +3079,33 @@ public Builder clearCategory() { private int detailedCategory_ = 0; /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedCategory. */ - @java.lang.Override public int getDetailedCategoryValue() { + @java.lang.Override + public int getDetailedCategoryValue() { return detailedCategory_; } /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for detailedCategory to set. * @return This builder for chaining. */ @@ -2734,28 +3116,42 @@ public Builder setDetailedCategoryValue(int value) { return this; } /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedCategory. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.DetailedCategory getDetailedCategory() { - com.google.cloud.servicehealth.v1.Event.DetailedCategory result = com.google.cloud.servicehealth.v1.Event.DetailedCategory.forNumber(detailedCategory_); - return result == null ? com.google.cloud.servicehealth.v1.Event.DetailedCategory.UNRECOGNIZED : result; + com.google.cloud.servicehealth.v1.Event.DetailedCategory result = + com.google.cloud.servicehealth.v1.Event.DetailedCategory.forNumber(detailedCategory_); + return result == null + ? com.google.cloud.servicehealth.v1.Event.DetailedCategory.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The detailedCategory to set. * @return This builder for chaining. */ - public Builder setDetailedCategory(com.google.cloud.servicehealth.v1.Event.DetailedCategory value) { + public Builder setDetailedCategory( + com.google.cloud.servicehealth.v1.Event.DetailedCategory value) { if (value == null) { throw new NullPointerException(); } @@ -2765,11 +3161,16 @@ public Builder setDetailedCategory(com.google.cloud.servicehealth.v1.Event.Detai return this; } /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDetailedCategory() { @@ -2781,22 +3182,33 @@ public Builder clearDetailedCategory() { private int state_ = 0; /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2807,24 +3219,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.State getState() { - com.google.cloud.servicehealth.v1.Event.State result = com.google.cloud.servicehealth.v1.Event.State.forNumber(state_); + com.google.cloud.servicehealth.v1.Event.State result = + com.google.cloud.servicehealth.v1.Event.State.forNumber(state_); return result == null ? com.google.cloud.servicehealth.v1.Event.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2838,11 +3261,16 @@ public Builder setState(com.google.cloud.servicehealth.v1.Event.State value) { return this; } /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2854,22 +3282,33 @@ public Builder clearState() { private int detailedState_ = 0; /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedState. */ - @java.lang.Override public int getDetailedStateValue() { + @java.lang.Override + public int getDetailedStateValue() { return detailedState_; } /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for detailedState to set. * @return This builder for chaining. */ @@ -2880,24 +3319,37 @@ public Builder setDetailedStateValue(int value) { return this; } /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedState. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.DetailedState getDetailedState() { - com.google.cloud.servicehealth.v1.Event.DetailedState result = com.google.cloud.servicehealth.v1.Event.DetailedState.forNumber(detailedState_); - return result == null ? com.google.cloud.servicehealth.v1.Event.DetailedState.UNRECOGNIZED : result; + com.google.cloud.servicehealth.v1.Event.DetailedState result = + com.google.cloud.servicehealth.v1.Event.DetailedState.forNumber(detailedState_); + return result == null + ? com.google.cloud.servicehealth.v1.Event.DetailedState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The detailedState to set. * @return This builder for chaining. */ @@ -2911,11 +3363,16 @@ public Builder setDetailedState(com.google.cloud.servicehealth.v1.Event.Detailed return this; } /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDetailedState() { @@ -2926,18 +3383,25 @@ public Builder clearDetailedState() { } private java.util.List eventImpacts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEventImpactsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - eventImpacts_ = new java.util.ArrayList(eventImpacts_); + eventImpacts_ = + new java.util.ArrayList(eventImpacts_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder> eventImpactsBuilder_; + com.google.cloud.servicehealth.v1.EventImpact, + com.google.cloud.servicehealth.v1.EventImpact.Builder, + com.google.cloud.servicehealth.v1.EventImpactOrBuilder> + eventImpactsBuilder_; /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -2952,6 +3416,8 @@ public java.util.List getEventImp } } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -2966,6 +3432,8 @@ public int getEventImpactsCount() { } } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -2980,14 +3448,15 @@ public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) } } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public Builder setEventImpacts( - int index, com.google.cloud.servicehealth.v1.EventImpact value) { + public Builder setEventImpacts(int index, com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3001,6 +3470,8 @@ public Builder setEventImpacts( return this; } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3019,6 +3490,8 @@ public Builder setEventImpacts( return this; } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3039,14 +3512,15 @@ public Builder addEventImpacts(com.google.cloud.servicehealth.v1.EventImpact val return this; } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public Builder addEventImpacts( - int index, com.google.cloud.servicehealth.v1.EventImpact value) { + public Builder addEventImpacts(int index, com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3060,6 +3534,8 @@ public Builder addEventImpacts( return this; } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3078,6 +3554,8 @@ public Builder addEventImpacts( return this; } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3096,6 +3574,8 @@ public Builder addEventImpacts( return this; } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3106,8 +3586,7 @@ public Builder addAllEventImpacts( java.lang.Iterable values) { if (eventImpactsBuilder_ == null) { ensureEventImpactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventImpacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventImpacts_); onChanged(); } else { eventImpactsBuilder_.addAllMessages(values); @@ -3115,6 +3594,8 @@ public Builder addAllEventImpacts( return this; } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3132,6 +3613,8 @@ public Builder clearEventImpacts() { return this; } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3149,17 +3632,20 @@ public Builder removeEventImpacts(int index) { return this; } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuilder(int index) { return getEventImpactsFieldBuilder().getBuilder(index); } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3169,19 +3655,22 @@ public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuil public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( int index) { if (eventImpactsBuilder_ == null) { - return eventImpacts_.get(index); } else { + return eventImpacts_.get(index); + } else { return eventImpactsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public java.util.List - getEventImpactsOrBuilderList() { + public java.util.List + getEventImpactsOrBuilderList() { if (eventImpactsBuilder_ != null) { return eventImpactsBuilder_.getMessageOrBuilderList(); } else { @@ -3189,6 +3678,8 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB } } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
@@ -3196,42 +3687,48 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder() { - return getEventImpactsFieldBuilder().addBuilder( - com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); + return getEventImpactsFieldBuilder() + .addBuilder(com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder( - int index) { - return getEventImpactsFieldBuilder().addBuilder( - index, com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder(int index) { + return getEventImpactsFieldBuilder() + .addBuilder(index, com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); } /** + * + * *
      * Google Cloud products and locations impacted by the event.
      * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - public java.util.List - getEventImpactsBuilderList() { + public java.util.List + getEventImpactsBuilderList() { return getEventImpactsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder> + com.google.cloud.servicehealth.v1.EventImpact, + com.google.cloud.servicehealth.v1.EventImpact.Builder, + com.google.cloud.servicehealth.v1.EventImpactOrBuilder> getEventImpactsFieldBuilder() { if (eventImpactsBuilder_ == null) { - eventImpactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder>( - eventImpacts_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); + eventImpactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.EventImpact, + com.google.cloud.servicehealth.v1.EventImpact.Builder, + com.google.cloud.servicehealth.v1.EventImpactOrBuilder>( + eventImpacts_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); eventImpacts_ = null; } return eventImpactsBuilder_; @@ -3239,24 +3736,35 @@ public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuil private int relevance_ = 0; /** + * + * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override public int getRelevanceValue() { + @java.lang.Override + public int getRelevanceValue() { return relevance_; } /** + * + * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for relevance to set. * @return This builder for chaining. */ @@ -3267,26 +3775,39 @@ public Builder setRelevanceValue(int value) { return this; } /** + * + * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The relevance. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event.Relevance getRelevance() { - com.google.cloud.servicehealth.v1.Event.Relevance result = com.google.cloud.servicehealth.v1.Event.Relevance.forNumber(relevance_); - return result == null ? com.google.cloud.servicehealth.v1.Event.Relevance.UNRECOGNIZED : result; + com.google.cloud.servicehealth.v1.Event.Relevance result = + com.google.cloud.servicehealth.v1.Event.Relevance.forNumber(relevance_); + return result == null + ? com.google.cloud.servicehealth.v1.Event.Relevance.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The relevance to set. * @return This builder for chaining. */ @@ -3300,12 +3821,17 @@ public Builder setRelevance(com.google.cloud.servicehealth.v1.Event.Relevance va return this; } /** + * + * *
      * Output only. Communicates why a given event is deemed relevant in the
      * context of a given project.
      * 
* - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearRelevance() { @@ -3316,23 +3842,31 @@ public Builder clearRelevance() { } private java.util.List updates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureUpdatesIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { updates_ = new java.util.ArrayList(updates_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> updatesBuilder_; + com.google.cloud.servicehealth.v1.EventUpdate, + com.google.cloud.servicehealth.v1.EventUpdate.Builder, + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> + updatesBuilder_; /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getUpdatesList() { if (updatesBuilder_ == null) { @@ -3342,11 +3876,15 @@ public java.util.List getUpdatesL } } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getUpdatesCount() { if (updatesBuilder_ == null) { @@ -3356,11 +3894,15 @@ public int getUpdatesCount() { } } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { if (updatesBuilder_ == null) { @@ -3370,14 +3912,17 @@ public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { } } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdates( - int index, com.google.cloud.servicehealth.v1.EventUpdate value) { + public Builder setUpdates(int index, com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3391,11 +3936,15 @@ public Builder setUpdates( return this; } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdates( int index, com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3409,11 +3958,15 @@ public Builder setUpdates( return this; } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addUpdates(com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { @@ -3429,14 +3982,17 @@ public Builder addUpdates(com.google.cloud.servicehealth.v1.EventUpdate value) { return this; } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addUpdates( - int index, com.google.cloud.servicehealth.v1.EventUpdate value) { + public Builder addUpdates(int index, com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3450,11 +4006,15 @@ public Builder addUpdates( return this; } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addUpdates( com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3468,11 +4028,15 @@ public Builder addUpdates( return this; } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addUpdates( int index, com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3486,18 +4050,21 @@ public Builder addUpdates( return this; } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllUpdates( java.lang.Iterable values) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, updates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, updates_); onChanged(); } else { updatesBuilder_.addAllMessages(values); @@ -3505,11 +4072,15 @@ public Builder addAllUpdates( return this; } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdates() { if (updatesBuilder_ == null) { @@ -3522,11 +4093,15 @@ public Builder clearUpdates() { return this; } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeUpdates(int index) { if (updatesBuilder_ == null) { @@ -3539,39 +4114,50 @@ public Builder removeUpdates(int index) { return this; } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.EventUpdate.Builder getUpdatesBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventUpdate.Builder getUpdatesBuilder(int index) { return getUpdatesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index) { if (updatesBuilder_ == null) { - return updates_.get(index); } else { + return updates_.get(index); + } else { return updatesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getUpdatesOrBuilderList() { + public java.util.List + getUpdatesOrBuilderList() { if (updatesBuilder_ != null) { return updatesBuilder_.getMessageOrBuilderList(); } else { @@ -3579,49 +4165,63 @@ public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilde } } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder() { - return getUpdatesFieldBuilder().addBuilder( - com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); + return getUpdatesFieldBuilder() + .addBuilder(com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder( - int index) { - return getUpdatesFieldBuilder().addBuilder( - index, com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(int index) { + return getUpdatesFieldBuilder() + .addBuilder(index, com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); } /** + * + * *
      * Output only. Event updates are correspondence from Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getUpdatesBuilderList() { + public java.util.List + getUpdatesBuilderList() { return getUpdatesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> + com.google.cloud.servicehealth.v1.EventUpdate, + com.google.cloud.servicehealth.v1.EventUpdate.Builder, + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> getUpdatesFieldBuilder() { if (updatesBuilder_ == null) { - updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder>( - updates_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); + updatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.EventUpdate, + com.google.cloud.servicehealth.v1.EventUpdate.Builder, + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder>( + updates_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); updates_ = null; } return updatesBuilder_; @@ -3629,6 +4229,8 @@ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder( private java.lang.Object parentEvent_ = ""; /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3636,13 +4238,13 @@ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parentEvent. */ public java.lang.String getParentEvent() { java.lang.Object ref = parentEvent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentEvent_ = s; return s; @@ -3651,6 +4253,8 @@ public java.lang.String getParentEvent() { } } /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3658,15 +4262,14 @@ public java.lang.String getParentEvent() {
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for parentEvent. */ - public com.google.protobuf.ByteString - getParentEventBytes() { + public com.google.protobuf.ByteString getParentEventBytes() { java.lang.Object ref = parentEvent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentEvent_ = b; return b; } else { @@ -3674,6 +4277,8 @@ public java.lang.String getParentEvent() { } } /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3681,18 +4286,22 @@ public java.lang.String getParentEvent() {
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The parentEvent to set. * @return This builder for chaining. */ - public Builder setParentEvent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parentEvent_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3700,6 +4309,7 @@ public Builder setParentEvent(
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearParentEvent() { @@ -3709,6 +4319,8 @@ public Builder clearParentEvent() { return this; } /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3716,12 +4328,14 @@ public Builder clearParentEvent() {
      * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for parentEvent to set. * @return This builder for chaining. */ - public Builder setParentEventBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parentEvent_ = value; bitField0_ |= 0x00000400; @@ -3731,39 +4345,58 @@ public Builder setParentEventBytes( private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time when the event was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Output only. The time when the event was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the event was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3779,14 +4412,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the event was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3797,17 +4433,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the event was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3822,11 +4462,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the event was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3839,11 +4483,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the event was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000800; @@ -3851,36 +4499,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the event was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time when the event was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3888,24 +4548,37 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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_; /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -3916,11 +4589,15 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -3936,14 +4613,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 { @@ -3954,17 +4634,21 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -3979,11 +4663,15 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -3996,11 +4684,15 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00001000; @@ -4008,36 +4700,46 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -4045,24 +4747,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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_; /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -4073,11 +4786,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -4093,14 +4809,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 { @@ -4111,17 +4829,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -4136,11 +4857,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4153,11 +4877,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00002000; @@ -4165,36 +4892,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -4202,39 +4937,58 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp nextUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextUpdateTimeBuilder_; /** + * + * *
      * Output only. The time when the next update can be expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the nextUpdateTime field is set. */ public boolean hasNextUpdateTime() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * Output only. The time when the next update can be expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The nextUpdateTime. */ public com.google.protobuf.Timestamp getNextUpdateTime() { if (nextUpdateTimeBuilder_ == null) { - return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; + return nextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextUpdateTime_; } else { return nextUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the next update can be expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setNextUpdateTime(com.google.protobuf.Timestamp value) { if (nextUpdateTimeBuilder_ == null) { @@ -4250,14 +5004,17 @@ public Builder setNextUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the next update can be expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNextUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (nextUpdateTimeBuilder_ == null) { nextUpdateTime_ = builderForValue.build(); } else { @@ -4268,17 +5025,21 @@ public Builder setNextUpdateTime( return this; } /** + * + * *
      * Output only. The time when the next update can be expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeNextUpdateTime(com.google.protobuf.Timestamp value) { if (nextUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) && - nextUpdateTime_ != null && - nextUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) + && nextUpdateTime_ != null + && nextUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getNextUpdateTimeBuilder().mergeFrom(value); } else { nextUpdateTime_ = value; @@ -4293,11 +5054,15 @@ public Builder mergeNextUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the next update can be expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearNextUpdateTime() { bitField0_ = (bitField0_ & ~0x00004000); @@ -4310,11 +5075,15 @@ public Builder clearNextUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the next update can be expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getNextUpdateTimeBuilder() { bitField0_ |= 0x00004000; @@ -4322,43 +5091,55 @@ public com.google.protobuf.Timestamp.Builder getNextUpdateTimeBuilder() { return getNextUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the next update can be expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder() { if (nextUpdateTimeBuilder_ != null) { return nextUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return nextUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; + return nextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextUpdateTime_; } } /** + * + * *
      * Output only. The time when the next update can be expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getNextUpdateTimeFieldBuilder() { if (nextUpdateTimeBuilder_ == null) { - nextUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getNextUpdateTime(), - getParentForChildren(), - isClean()); + nextUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextUpdateTime(), getParentForChildren(), isClean()); nextUpdateTime_ = null; } return nextUpdateTimeBuilder_; } + @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); } @@ -4368,12 +5149,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.Event) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.Event) private static final com.google.cloud.servicehealth.v1.Event DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.Event(); } @@ -4382,27 +5163,27 @@ public static com.google.cloud.servicehealth.v1.Event getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Event parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4417,6 +5198,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java similarity index 68% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java index a491fadf858f..989b0328c72f 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpact.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,53 +20,59 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * Represents the Google Cloud products and locations impacted by the event.
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.EventImpact} */ -public final class EventImpact extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EventImpact extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.EventImpact) EventImpactOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EventImpact.newBuilder() to construct. private EventImpact(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EventImpact() { - } + + private EventImpact() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventImpact(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.EventImpact.class, com.google.cloud.servicehealth.v1.EventImpact.Builder.class); + com.google.cloud.servicehealth.v1.EventImpact.class, + com.google.cloud.servicehealth.v1.EventImpact.Builder.class); } private int bitField0_; public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.servicehealth.v1.Product product_; /** + * + * *
    * Google Cloud product impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Product product = 1; + * * @return Whether the product field is set. */ @java.lang.Override @@ -59,18 +80,25 @@ public boolean hasProduct() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Google Cloud product impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Product product = 1; + * * @return The product. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Product getProduct() { - return product_ == null ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() + : product_; } /** + * + * *
    * Google Cloud product impacted by the event.
    * 
@@ -79,17 +107,22 @@ public com.google.cloud.servicehealth.v1.Product getProduct() { */ @java.lang.Override public com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder() { - return product_ == null ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() + : product_; } public static final int LOCATION_FIELD_NUMBER = 2; private com.google.cloud.servicehealth.v1.Location location_; /** + * + * *
    * Location impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Location location = 2; + * * @return Whether the location field is set. */ @java.lang.Override @@ -97,18 +130,25 @@ public boolean hasLocation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Location impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Location location = 2; + * * @return The location. */ @java.lang.Override public com.google.cloud.servicehealth.v1.Location getLocation() { - return location_ == null ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() + : location_; } /** + * + * *
    * Location impacted by the event.
    * 
@@ -117,10 +157,13 @@ public com.google.cloud.servicehealth.v1.Location getLocation() { */ @java.lang.Override public com.google.cloud.servicehealth.v1.LocationOrBuilder getLocationOrBuilder() { - return location_ == null ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() + : location_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getProduct()); } @@ -150,12 +192,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProduct()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -165,22 +205,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.cloud.servicehealth.v1.EventImpact)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.EventImpact other = (com.google.cloud.servicehealth.v1.EventImpact) obj; + com.google.cloud.servicehealth.v1.EventImpact other = + (com.google.cloud.servicehealth.v1.EventImpact) obj; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getProduct().equals(other.getProduct())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -206,120 +245,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.EventImpact parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.EventImpact parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.EventImpact parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.EventImpact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.EventImpact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 Google Cloud products and locations impacted by the event.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.EventImpact} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.EventImpact) com.google.cloud.servicehealth.v1.EventImpactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.EventImpact.class, com.google.cloud.servicehealth.v1.EventImpact.Builder.class); + com.google.cloud.servicehealth.v1.EventImpact.class, + com.google.cloud.servicehealth.v1.EventImpact.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.EventImpact.newBuilder() @@ -327,18 +373,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductFieldBuilder(); getLocationFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +403,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; } @java.lang.Override @@ -378,8 +424,11 @@ public com.google.cloud.servicehealth.v1.EventImpact build() { @java.lang.Override public com.google.cloud.servicehealth.v1.EventImpact buildPartial() { - com.google.cloud.servicehealth.v1.EventImpact result = new com.google.cloud.servicehealth.v1.EventImpact(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.EventImpact result = + new com.google.cloud.servicehealth.v1.EventImpact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -388,15 +437,11 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.EventImpact result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.product_ = productBuilder_ == null - ? product_ - : productBuilder_.build(); + result.product_ = productBuilder_ == null ? product_ : productBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.location_ = locationBuilder_ == null - ? location_ - : locationBuilder_.build(); + result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -406,38 +451,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.EventImpact 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.cloud.servicehealth.v1.EventImpact) { - return mergeFrom((com.google.cloud.servicehealth.v1.EventImpact)other); + return mergeFrom((com.google.cloud.servicehealth.v1.EventImpact) other); } else { super.mergeFrom(other); return this; @@ -478,26 +524,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getProductFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getLocationFieldBuilder().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(getProductFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getLocationFieldBuilder().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) { @@ -507,38 +552,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.servicehealth.v1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Product, com.google.cloud.servicehealth.v1.Product.Builder, com.google.cloud.servicehealth.v1.ProductOrBuilder> productBuilder_; + com.google.cloud.servicehealth.v1.Product, + com.google.cloud.servicehealth.v1.Product.Builder, + com.google.cloud.servicehealth.v1.ProductOrBuilder> + productBuilder_; /** + * + * *
      * Google Cloud product impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Product product = 1; + * * @return Whether the product field is set. */ public boolean hasProduct() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Google Cloud product impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Product product = 1; + * * @return The product. */ public com.google.cloud.servicehealth.v1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
      * Google Cloud product impacted by the event.
      * 
@@ -559,14 +618,15 @@ public Builder setProduct(com.google.cloud.servicehealth.v1.Product value) { return this; } /** + * + * *
      * Google Cloud product impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Product product = 1; */ - public Builder setProduct( - com.google.cloud.servicehealth.v1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.servicehealth.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); } else { @@ -577,6 +637,8 @@ public Builder setProduct( return this; } /** + * + * *
      * Google Cloud product impacted by the event.
      * 
@@ -585,9 +647,9 @@ public Builder setProduct( */ public Builder mergeProduct(com.google.cloud.servicehealth.v1.Product value) { if (productBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - product_ != null && - product_ != com.google.cloud.servicehealth.v1.Product.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && product_ != null + && product_ != com.google.cloud.servicehealth.v1.Product.getDefaultInstance()) { getProductBuilder().mergeFrom(value); } else { product_ = value; @@ -602,6 +664,8 @@ public Builder mergeProduct(com.google.cloud.servicehealth.v1.Product value) { return this; } /** + * + * *
      * Google Cloud product impacted by the event.
      * 
@@ -619,6 +683,8 @@ public Builder clearProduct() { return this; } /** + * + * *
      * Google Cloud product impacted by the event.
      * 
@@ -631,6 +697,8 @@ public com.google.cloud.servicehealth.v1.Product.Builder getProductBuilder() { return getProductFieldBuilder().getBuilder(); } /** + * + * *
      * Google Cloud product impacted by the event.
      * 
@@ -641,11 +709,14 @@ public com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder() if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.servicehealth.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.servicehealth.v1.Product.getDefaultInstance() + : product_; } } /** + * + * *
      * Google Cloud product impacted by the event.
      * 
@@ -653,14 +724,17 @@ public com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder() * .google.cloud.servicehealth.v1.Product product = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Product, com.google.cloud.servicehealth.v1.Product.Builder, com.google.cloud.servicehealth.v1.ProductOrBuilder> + com.google.cloud.servicehealth.v1.Product, + com.google.cloud.servicehealth.v1.Product.Builder, + com.google.cloud.servicehealth.v1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Product, com.google.cloud.servicehealth.v1.Product.Builder, com.google.cloud.servicehealth.v1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.servicehealth.v1.Product, + com.google.cloud.servicehealth.v1.Product.Builder, + com.google.cloud.servicehealth.v1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; @@ -668,34 +742,47 @@ public com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder() private com.google.cloud.servicehealth.v1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Location, com.google.cloud.servicehealth.v1.Location.Builder, com.google.cloud.servicehealth.v1.LocationOrBuilder> locationBuilder_; + com.google.cloud.servicehealth.v1.Location, + com.google.cloud.servicehealth.v1.Location.Builder, + com.google.cloud.servicehealth.v1.LocationOrBuilder> + locationBuilder_; /** + * + * *
      * Location impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Location location = 2; + * * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Location impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Location location = 2; + * * @return The location. */ public com.google.cloud.servicehealth.v1.Location getLocation() { if (locationBuilder_ == null) { - return location_ == null ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() + : location_; } else { return locationBuilder_.getMessage(); } } /** + * + * *
      * Location impacted by the event.
      * 
@@ -716,14 +803,15 @@ public Builder setLocation(com.google.cloud.servicehealth.v1.Location value) { return this; } /** + * + * *
      * Location impacted by the event.
      * 
* * .google.cloud.servicehealth.v1.Location location = 2; */ - public Builder setLocation( - com.google.cloud.servicehealth.v1.Location.Builder builderForValue) { + public Builder setLocation(com.google.cloud.servicehealth.v1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { @@ -734,6 +822,8 @@ public Builder setLocation( return this; } /** + * + * *
      * Location impacted by the event.
      * 
@@ -742,9 +832,9 @@ public Builder setLocation( */ public Builder mergeLocation(com.google.cloud.servicehealth.v1.Location value) { if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - location_ != null && - location_ != com.google.cloud.servicehealth.v1.Location.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && location_ != null + && location_ != com.google.cloud.servicehealth.v1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; @@ -759,6 +849,8 @@ public Builder mergeLocation(com.google.cloud.servicehealth.v1.Location value) { return this; } /** + * + * *
      * Location impacted by the event.
      * 
@@ -776,6 +868,8 @@ public Builder clearLocation() { return this; } /** + * + * *
      * Location impacted by the event.
      * 
@@ -788,6 +882,8 @@ public com.google.cloud.servicehealth.v1.Location.Builder getLocationBuilder() { return getLocationFieldBuilder().getBuilder(); } /** + * + * *
      * Location impacted by the event.
      * 
@@ -798,11 +894,14 @@ public com.google.cloud.servicehealth.v1.LocationOrBuilder getLocationOrBuilder( if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { - return location_ == null ? - com.google.cloud.servicehealth.v1.Location.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.servicehealth.v1.Location.getDefaultInstance() + : location_; } } /** + * + * *
      * Location impacted by the event.
      * 
@@ -810,21 +909,24 @@ public com.google.cloud.servicehealth.v1.LocationOrBuilder getLocationOrBuilder( * .google.cloud.servicehealth.v1.Location location = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Location, com.google.cloud.servicehealth.v1.Location.Builder, com.google.cloud.servicehealth.v1.LocationOrBuilder> + com.google.cloud.servicehealth.v1.Location, + com.google.cloud.servicehealth.v1.Location.Builder, + com.google.cloud.servicehealth.v1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Location, com.google.cloud.servicehealth.v1.Location.Builder, com.google.cloud.servicehealth.v1.LocationOrBuilder>( - getLocation(), - getParentForChildren(), - isClean()); + locationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.servicehealth.v1.Location, + com.google.cloud.servicehealth.v1.Location.Builder, + com.google.cloud.servicehealth.v1.LocationOrBuilder>( + getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } + @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); } @@ -834,12 +936,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.EventImpact) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.EventImpact) private static final com.google.cloud.servicehealth.v1.EventImpact DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.EventImpact(); } @@ -848,27 +950,27 @@ public static com.google.cloud.servicehealth.v1.EventImpact getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventImpact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EventImpact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -883,6 +985,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.EventImpact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java similarity index 70% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java index 395cccc4c742..d54b5ad2f5b5 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventImpactOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface EventImpactOrBuilder extends +public interface EventImpactOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.EventImpact) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud product impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Product product = 1; + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
    * Google Cloud product impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Product product = 1; + * * @return The product. */ com.google.cloud.servicehealth.v1.Product getProduct(); /** + * + * *
    * Google Cloud product impacted by the event.
    * 
@@ -36,24 +60,32 @@ public interface EventImpactOrBuilder extends com.google.cloud.servicehealth.v1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
    * Location impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Location location = 2; + * * @return Whether the location field is set. */ boolean hasLocation(); /** + * + * *
    * Location impacted by the event.
    * 
* * .google.cloud.servicehealth.v1.Location location = 2; + * * @return The location. */ com.google.cloud.servicehealth.v1.Location getLocation(); /** + * + * *
    * Location impacted by the event.
    * 
diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java similarity index 66% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java index 1037b7b74a21..2deb8152713c 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventOrBuilder.java @@ -1,163 +1,241 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface EventOrBuilder extends +public interface EventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.Event) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including project and location using the form
    * `projects/{project_id}/locations/{location}/events/{event_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including project and location using the form
    * `projects/{project_id}/locations/{location}/events/{event_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The title. */ java.lang.String getTitle(); /** + * + * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for title. */ - com.google.protobuf.ByteString - getTitleBytes(); + com.google.protobuf.ByteString getTitleBytes(); /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The category of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for category. */ int getCategoryValue(); /** + * + * *
    * Output only. The category of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The category. */ com.google.cloud.servicehealth.v1.Event.EventCategory getCategory(); /** + * + * *
    * Output only. The detailed category of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedCategory. */ int getDetailedCategoryValue(); /** + * + * *
    * Output only. The detailed category of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedCategory. */ com.google.cloud.servicehealth.v1.Event.DetailedCategory getDetailedCategory(); /** + * + * *
    * Output only. The current state of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the event.
    * 
* - * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.servicehealth.v1.Event.State getState(); /** + * + * *
    * Output only. The current detailed state of the incident.
    * 
* - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedState. */ int getDetailedStateValue(); /** + * + * *
    * Output only. The current detailed state of the incident.
    * 
* - * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedState. */ com.google.cloud.servicehealth.v1.Event.DetailedState getDetailedState(); /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - java.util.List - getEventImpactsList(); + java.util.List getEventImpactsList(); /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -166,6 +244,8 @@ public interface EventOrBuilder extends */ com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index); /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
@@ -174,90 +254,123 @@ public interface EventOrBuilder extends */ int getEventImpactsCount(); /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - java.util.List + java.util.List getEventImpactsOrBuilderList(); /** + * + * *
    * Google Cloud products and locations impacted by the event.
    * 
* * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20; */ - com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( - int index); + com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder(int index); /** + * + * *
    * Output only. Communicates why a given event is deemed relevant in the
    * context of a given project.
    * 
* - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for relevance. */ int getRelevanceValue(); /** + * + * *
    * Output only. Communicates why a given event is deemed relevant in the
    * context of a given project.
    * 
* - * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The relevance. */ com.google.cloud.servicehealth.v1.Event.Relevance getRelevance(); /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getUpdatesList(); + java.util.List getUpdatesList(); /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index); /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getUpdatesCount(); /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getUpdatesOrBuilderList(); /** + * + * *
    * Output only. Event updates are correspondence from Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( - int index); + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index); /** + * + * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -265,10 +378,13 @@ com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(
    * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parentEvent. */ java.lang.String getParentEvent(); /** + * + * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -276,116 +392,163 @@ com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(
    * 
* * string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for parentEvent. */ - com.google.protobuf.ByteString - getParentEventBytes(); + com.google.protobuf.ByteString getParentEventBytes(); /** + * + * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the event was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. The time when the next update can be expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the nextUpdateTime field is set. */ boolean hasNextUpdateTime(); /** + * + * *
    * Output only. The time when the next update can be expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The nextUpdateTime. */ com.google.protobuf.Timestamp getNextUpdateTime(); /** + * + * *
    * Output only. The time when the next update can be expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java new file mode 100644 index 000000000000..d3fefb856423 --- /dev/null +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java @@ -0,0 +1,439 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/servicehealth/v1/event_resources.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.servicehealth.v1; + +public final class EventResourcesProto { + private EventResourcesProto() {} + + 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_cloud_servicehealth_v1_Event_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_Location_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_Product_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_Asset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/servicehealth/v1/event_re" + + "sources.proto\022\035google.cloud.servicehealt" + + "h.v1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032\037google/protobu" + + "f/timestamp.proto\"\223\013\n\005Event\022\024\n\004name\030\001 \001(" + + "\tB\006\340A\003\340A\010\022\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013descrip" + + "tion\030\003 \001(\tB\003\340A\003\022I\n\010category\030\004 \001(\01622.goog" + + "le.cloud.servicehealth.v1.Event.EventCat" + + "egoryB\003\340A\003\022U\n\021detailed_category\030\025 \001(\01625." + + "google.cloud.servicehealth.v1.Event.Deta" + + "iledCategoryB\003\340A\003\022>\n\005state\030\005 \001(\0162*.googl" + + "e.cloud.servicehealth.v1.Event.StateB\003\340A" + + "\003\022O\n\016detailed_state\030\023 \001(\01622.google.cloud" + + ".servicehealth.v1.Event.DetailedStateB\003\340" + + "A\003\022A\n\revent_impacts\030\024 \003(\0132*.google.cloud" + + ".servicehealth.v1.EventImpact\022F\n\trelevan" + + "ce\030\010 \001(\0162..google.cloud.servicehealth.v1" + + ".Event.RelevanceB\003\340A\003\022@\n\007updates\030\t \003(\0132*" + + ".google.cloud.servicehealth.v1.EventUpda" + + "teB\003\340A\003\022\031\n\014parent_event\030\n \001(\tB\003\340A\003\0224\n\013up" + + "date_time\030\014 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0223\n\nstart_time\030\r \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\016 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0229\n\020next" + + "_update_time\030\017 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\"=\n\rEventCategory\022\036\n\032EVENT_CA" + + "TEGORY_UNSPECIFIED\020\000\022\014\n\010INCIDENT\020\002\"d\n\020De" + + "tailedCategory\022!\n\035DETAILED_CATEGORY_UNSP" + + "ECIFIED\020\000\022\026\n\022CONFIRMED_INCIDENT\020\001\022\025\n\021EME" + + "RGING_INCIDENT\020\002\"6\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006CLOSED\020\002\"\213\001\n\rDet" + + "ailedState\022\036\n\032DETAILED_STATE_UNSPECIFIED" + + "\020\000\022\014\n\010EMERGING\020\001\022\r\n\tCONFIRMED\020\002\022\014\n\010RESOL" + + "VED\020\003\022\n\n\006MERGED\020\004\022\017\n\013AUTO_CLOSED\020\t\022\022\n\016FA" + + "LSE_POSITIVE\020\n\"w\n\tRelevance\022\031\n\025RELEVANCE" + + "_UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\002\022\020\n\014NOT_IMPAC" + + "TED\020\006\022\025\n\021PARTIALLY_RELATED\020\007\022\013\n\007RELATED\020" + + "\010\022\014\n\010IMPACTED\020\t:n\352Ak\n\"servicehealth.goog" + + "leapis.com/Event\0226projects/{project}/loc" + + "ations/{location}/events/{event}*\006events" + + "2\005event\"\317\n\n\021OrganizationEvent\022\024\n\004name\030\001 " + + "\001(\tB\006\340A\003\340A\010\022\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013descr" + + "iption\030\003 \001(\tB\003\340A\003\022U\n\010category\030\004 \001(\0162>.go" + + "ogle.cloud.servicehealth.v1.Organization" + + "Event.EventCategoryB\003\340A\003\022a\n\021detailed_cat" + + "egory\030\021 \001(\0162A.google.cloud.servicehealth" + + ".v1.OrganizationEvent.DetailedCategoryB\003" + + "\340A\003\022J\n\005state\030\005 \001(\01626.google.cloud.servic" + + "ehealth.v1.OrganizationEvent.StateB\003\340A\003\022" + + "[\n\016detailed_state\030\020 \001(\0162>.google.cloud.s" + + "ervicehealth.v1.OrganizationEvent.Detail" + + "edStateB\003\340A\003\022F\n\revent_impacts\030\017 \003(\0132*.go" + + "ogle.cloud.servicehealth.v1.EventImpactB" + + "\003\340A\003\022@\n\007updates\030\010 \003(\0132*.google.cloud.ser" + + "vicehealth.v1.EventUpdateB\003\340A\003\022\031\n\014parent" + + "_event\030\t \001(\tB\003\340A\003\0224\n\013update_time\030\013 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0223\n\nstart" + + "_time\030\014 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\r \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0229\n\020next_update_time\030\016 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\"=\n\rEv" + + "entCategory\022\036\n\032EVENT_CATEGORY_UNSPECIFIE" + + "D\020\000\022\014\n\010INCIDENT\020\002\"d\n\020DetailedCategory\022!\n" + + "\035DETAILED_CATEGORY_UNSPECIFIED\020\000\022\026\n\022CONF" + + "IRMED_INCIDENT\020\001\022\025\n\021EMERGING_INCIDENT\020\002\"" + + "6\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\n\n\006CLOSED\020\002\"\213\001\n\rDetailedState\022\036\n\032DET" + + "AILED_STATE_UNSPECIFIED\020\000\022\014\n\010EMERGING\020\001\022" + + "\r\n\tCONFIRMED\020\002\022\014\n\010RESOLVED\020\003\022\n\n\006MERGED\020\004" + + "\022\017\n\013AUTO_CLOSED\020\t\022\022\n\016FALSE_POSITIVE\020\n:\251\001" + + "\352A\245\001\n.servicehealth.googleapis.com/Organ" + + "izationEvent\022Lorganizations/{organizatio" + + "n}/locations/{location}/organizationEven" + + "ts/{event}*\022organizationEvents2\021organiza" + + "tionEvent\"\240\001\n\013EventUpdate\0224\n\013update_time" + + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013description\030\003 \001(\t" + + "B\003\340A\003\022\024\n\007symptom\030\004 \001(\tB\003\340A\003\022\027\n\nworkaroun" + + "d\030\005 \001(\tB\003\340A\003\"!\n\010Location\022\025\n\rlocation_nam" + + "e\030\001 \001(\t\"\037\n\007Product\022\024\n\014product_name\030\001 \001(\t" + + "\"\201\001\n\013EventImpact\0227\n\007product\030\001 \001(\0132&.goog" + + "le.cloud.servicehealth.v1.Product\0229\n\010loc" + + "ation\030\002 \001(\0132\'.google.cloud.servicehealth" + + ".v1.Location\"\224\003\n\022OrganizationImpact\022\024\n\004n" + + "ame\030\001 \001(\tB\006\340A\003\340A\010\022:\n\006events\030\002 \003(\tB*\340A\003\372A" + + "$\n\"servicehealth.googleapis.com/Event\0228\n" + + "\005asset\030\003 \001(\0132$.google.cloud.servicehealt" + + "h.v1.AssetB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003:\273\001\352A\267\001\n/se" + + "rvicehealth.googleapis.com/OrganizationI" + + "mpact\022[organizations/{organization}/loca" + + "tions/{location}/organizationImpacts/{or" + + "ganization_impact}*\023organizationImpacts2" + + "\022organizationImpact\"9\n\005Asset\022\027\n\nasset_na" + + "me\030\001 \001(\tB\003\340A\003\022\027\n\nasset_type\030\002 \001(\tB\003\340A\003\"\322" + + "\001\n\021ListEventsRequest\022:\n\006parent\030\001 \001(\tB*\340A" + + "\002\372A$\022\"servicehealth.googleapis.com/Event" + + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" + + " \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022;\n\004view\030\006" + + " \001(\0162(.google.cloud.servicehealth.v1.Eve" + + "ntViewB\003\340A\001\"\207\001\n\022ListEventsResponse\0229\n\006ev" + + "ents\030\001 \003(\0132$.google.cloud.servicehealth." + + "v1.EventB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003" + + "\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"K\n\017GetEven" + + "tRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"serviceh" + + "ealth.googleapis.com/Event\"\366\001\n\035ListOrgan" + + "izationEventsRequest\022F\n\006parent\030\001 \001(\tB6\340A" + + "\002\372A0\022.servicehealth.googleapis.com/Organ" + + "izationEvent\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340" + + "A\001\022G\n\004view\030\006 \001(\01624.google.cloud.serviceh" + + "ealth.v1.OrganizationEventViewB\003\340A\001\"\254\001\n\036" + + "ListOrganizationEventsResponse\022R\n\023organi" + + "zation_events\030\001 \003(\01320.google.cloud.servi" + + "cehealth.v1.OrganizationEventB\003\340A\003\022\034\n\017ne" + + "xt_page_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030" + + "\003 \003(\tB\003\340A\003\"c\n\033GetOrganizationEventReques" + + "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.servicehealth.g" + + "oogleapis.com/OrganizationEvent\"\257\001\n\036List" + + "OrganizationImpactsRequest\022G\n\006parent\030\001 \001" + + "(\tB7\340A\002\372A1\022/servicehealth.googleapis.com" + + "/OrganizationImpact\022\026\n\tpage_size\030\002 \001(\005B\003" + + "\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004" + + " \001(\tB\003\340A\001\"\257\001\n\037ListOrganizationImpactsRes" + + "ponse\022T\n\024organization_impacts\030\001 \003(\01321.go" + + "ogle.cloud.servicehealth.v1.Organization" + + "ImpactB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" + + "\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"e\n\034GetOrgani" + + "zationImpactRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A" + + "1\n/servicehealth.googleapis.com/Organiza" + + "tionImpact*R\n\tEventView\022\032\n\026EVENT_VIEW_UN" + + "SPECIFIED\020\000\022\024\n\020EVENT_VIEW_BASIC\020\001\022\023\n\017EVE" + + "NT_VIEW_FULL\020\002*\205\001\n\025OrganizationEventView" + + "\022\'\n#ORGANIZATION_EVENT_VIEW_UNSPECIFIED\020" + + "\000\022!\n\035ORGANIZATION_EVENT_VIEW_BASIC\020\001\022 \n\034" + + "ORGANIZATION_EVENT_VIEW_FULL\020\002B\317\002\n!com.g" + + "oogle.cloud.servicehealth.v1B\023EventResou" + + "rcesProtoP\001ZGcloud.google.com/go/service" + + "health/apiv1/servicehealthpb;serviceheal" + + "thpb\252\002\035Google.Cloud.ServiceHealth.V1\312\002\035G" + + "oogle\\Cloud\\ServiceHealth\\V1\352\002 Google::C" + + "loud::ServiceHealth::V1\352Af\n1servicehealt" + + "h.googleapis.com/OrganizationLocation\0221o" + + "rganizations/{organization}/locations/{l" + + "ocation}b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_servicehealth_v1_Event_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_Event_descriptor, + new java.lang.String[] { + "Name", + "Title", + "Description", + "Category", + "DetailedCategory", + "State", + "DetailedState", + "EventImpacts", + "Relevance", + "Updates", + "ParentEvent", + "UpdateTime", + "StartTime", + "EndTime", + "NextUpdateTime", + }); + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor, + new java.lang.String[] { + "Name", + "Title", + "Description", + "Category", + "DetailedCategory", + "State", + "DetailedState", + "EventImpacts", + "Updates", + "ParentEvent", + "UpdateTime", + "StartTime", + "EndTime", + "NextUpdateTime", + }); + internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor, + new java.lang.String[] { + "UpdateTime", "Title", "Description", "Symptom", "Workaround", + }); + internal_static_google_cloud_servicehealth_v1_Location_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_Location_descriptor, + new java.lang.String[] { + "LocationName", + }); + internal_static_google_cloud_servicehealth_v1_Product_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_Product_descriptor, + new java.lang.String[] { + "ProductName", + }); + internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor, + new java.lang.String[] { + "Product", "Location", + }); + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor, + new java.lang.String[] { + "Name", "Events", "Asset", "UpdateTime", + }); + internal_static_google_cloud_servicehealth_v1_Asset_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_Asset_descriptor, + new java.lang.String[] { + "AssetName", "AssetType", + }); + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "View", + }); + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor, + new java.lang.String[] { + "Events", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "View", + }); + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor, + new java.lang.String[] { + "OrganizationEvents", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor, + new java.lang.String[] { + "OrganizationImpacts", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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.resourceDefinition); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java new file mode 100644 index 000000000000..d23446d8c0a7 --- /dev/null +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java @@ -0,0 +1,106 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/servicehealth/v1/event_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.servicehealth.v1; + +public final class EventServiceProto { + private EventServiceProto() {} + + 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 = { + "\n1google/cloud/servicehealth/v1/event_se" + + "rvice.proto\022\035google.cloud.servicehealth." + + "v1\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\0323google/cloud/serviceh" + + "ealth/v1/event_resources.proto2\252\n\n\rServi" + + "ceHealth\022\256\001\n\nListEvents\0220.google.cloud.s" + + "ervicehealth.v1.ListEventsRequest\0321.goog" + + "le.cloud.servicehealth.v1.ListEventsResp" + + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=proje" + + "cts/*/locations/*}/events\022\233\001\n\010GetEvent\022." + + ".google.cloud.servicehealth.v1.GetEventR" + + "equest\032$.google.cloud.servicehealth.v1.E" + + "vent\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/" + + "*/locations/*/events/*}\022\343\001\n\026ListOrganiza" + + "tionEvents\022<.google.cloud.servicehealth." + + "v1.ListOrganizationEventsRequest\032=.googl" + + "e.cloud.servicehealth.v1.ListOrganizatio" + + "nEventsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{p" + + "arent=organizations/*/locations/*}/organ" + + "izationEvents\022\320\001\n\024GetOrganizationEvent\022:" + + ".google.cloud.servicehealth.v1.GetOrgani" + + "zationEventRequest\0320.google.cloud.servic" + + "ehealth.v1.OrganizationEvent\"J\332A\004name\202\323\344" + + "\223\002=\022;/v1/{name=organizations/*/locations" + + "/*/organizationEvents/*}\022\347\001\n\027ListOrganiz" + + "ationImpacts\022=.google.cloud.servicehealt" + + "h.v1.ListOrganizationImpactsRequest\032>.go" + + "ogle.cloud.servicehealth.v1.ListOrganiza" + + "tionImpactsResponse\"M\332A\006parent\202\323\344\223\002>\022\022 * Records an update made to the event. *
* * Protobuf type {@code google.cloud.servicehealth.v1.EventUpdate} */ -public final class EventUpdate extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EventUpdate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.EventUpdate) EventUpdateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EventUpdate.newBuilder() to construct. private EventUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EventUpdate() { title_ = ""; description_ = ""; @@ -29,33 +47,38 @@ private EventUpdate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventUpdate(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.EventUpdate.class, com.google.cloud.servicehealth.v1.EventUpdate.Builder.class); + com.google.cloud.servicehealth.v1.EventUpdate.class, + com.google.cloud.servicehealth.v1.EventUpdate.Builder.class); } private int bitField0_; public static final int UPDATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -63,11 +86,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -75,11 +102,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -87,14 +117,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int TITLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** + * + * *
    * Output only. Brief title for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The title. */ @java.lang.Override @@ -103,29 +137,29 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** + * + * *
    * Output only. Brief title for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -134,14 +168,18 @@ public java.lang.String getTitle() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ @java.lang.Override @@ -150,29 +188,29 @@ 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; } } /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -181,14 +219,18 @@ public java.lang.String getDescription() { } public static final int SYMPTOM_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object symptom_ = ""; /** + * + * *
    * Output only. Symptoms of the event, if available.
    * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The symptom. */ @java.lang.Override @@ -197,29 +239,29 @@ public java.lang.String getSymptom() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symptom_ = s; return s; } } /** + * + * *
    * Output only. Symptoms of the event, if available.
    * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for symptom. */ @java.lang.Override - public com.google.protobuf.ByteString - getSymptomBytes() { + public com.google.protobuf.ByteString getSymptomBytes() { java.lang.Object ref = symptom_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); symptom_ = b; return b; } else { @@ -228,14 +270,18 @@ public java.lang.String getSymptom() { } public static final int WORKAROUND_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object workaround_ = ""; /** + * + * *
    * Output only. Workaround steps to remediate the event impact, if available.
    * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workaround. */ @java.lang.Override @@ -244,29 +290,29 @@ public java.lang.String getWorkaround() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workaround_ = s; return s; } } /** + * + * *
    * Output only. Workaround steps to remediate the event impact, if available.
    * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workaround. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkaroundBytes() { + public com.google.protobuf.ByteString getWorkaroundBytes() { java.lang.Object ref = workaround_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workaround_ = b; return b; } else { @@ -275,6 +321,7 @@ public java.lang.String getWorkaround() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getUpdateTime()); } @@ -313,8 +359,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); @@ -336,26 +381,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.cloud.servicehealth.v1.EventUpdate)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.EventUpdate other = (com.google.cloud.servicehealth.v1.EventUpdate) obj; + com.google.cloud.servicehealth.v1.EventUpdate other = + (com.google.cloud.servicehealth.v1.EventUpdate) obj; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getSymptom() - .equals(other.getSymptom())) return false; - if (!getWorkaround() - .equals(other.getWorkaround())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getTitle().equals(other.getTitle())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSymptom().equals(other.getSymptom())) return false; + if (!getWorkaround().equals(other.getWorkaround())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -384,120 +425,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.EventUpdate parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.EventUpdate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.EventUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.EventUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.EventUpdate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Records an update made to the event.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.EventUpdate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.EventUpdate) com.google.cloud.servicehealth.v1.EventUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.EventUpdate.class, com.google.cloud.servicehealth.v1.EventUpdate.Builder.class); + com.google.cloud.servicehealth.v1.EventUpdate.class, + com.google.cloud.servicehealth.v1.EventUpdate.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.EventUpdate.newBuilder() @@ -505,17 +553,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getUpdateTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -533,9 +581,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; } @java.lang.Override @@ -554,8 +602,11 @@ public com.google.cloud.servicehealth.v1.EventUpdate build() { @java.lang.Override public com.google.cloud.servicehealth.v1.EventUpdate buildPartial() { - com.google.cloud.servicehealth.v1.EventUpdate result = new com.google.cloud.servicehealth.v1.EventUpdate(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.EventUpdate result = + new com.google.cloud.servicehealth.v1.EventUpdate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -564,9 +615,7 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.EventUpdate result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -588,38 +637,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.EventUpdate 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.cloud.servicehealth.v1.EventUpdate) { - return mergeFrom((com.google.cloud.servicehealth.v1.EventUpdate)other); + return mergeFrom((com.google.cloud.servicehealth.v1.EventUpdate) other); } else { super.mergeFrom(other); return this; @@ -677,39 +727,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - symptom_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - workaround_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + symptom_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + workaround_ = 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) { @@ -719,43 +773,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -771,14 +845,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -789,17 +866,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -814,11 +895,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -831,11 +916,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000001; @@ -843,36 +932,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -880,18 +981,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object title_ = ""; /** + * + * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -900,20 +1003,21 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -921,28 +1025,35 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTitle() { @@ -952,17 +1063,21 @@ public Builder clearTitle() { return this; } /** + * + * *
      * Output only. Brief title for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000002; @@ -972,18 +1087,20 @@ public Builder setTitleBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -992,20 +1109,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1013,28 +1131,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1044,17 +1169,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000004; @@ -1064,18 +1193,20 @@ public Builder setDescriptionBytes( private java.lang.Object symptom_ = ""; /** + * + * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The symptom. */ public java.lang.String getSymptom() { java.lang.Object ref = symptom_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symptom_ = s; return s; @@ -1084,20 +1215,21 @@ public java.lang.String getSymptom() { } } /** + * + * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for symptom. */ - public com.google.protobuf.ByteString - getSymptomBytes() { + public com.google.protobuf.ByteString getSymptomBytes() { java.lang.Object ref = symptom_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); symptom_ = b; return b; } else { @@ -1105,28 +1237,35 @@ public java.lang.String getSymptom() { } } /** + * + * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The symptom to set. * @return This builder for chaining. */ - public Builder setSymptom( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSymptom(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } symptom_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSymptom() { @@ -1136,17 +1275,21 @@ public Builder clearSymptom() { return this; } /** + * + * *
      * Output only. Symptoms of the event, if available.
      * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for symptom to set. * @return This builder for chaining. */ - public Builder setSymptomBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSymptomBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); symptom_ = value; bitField0_ |= 0x00000008; @@ -1156,18 +1299,20 @@ public Builder setSymptomBytes( private java.lang.Object workaround_ = ""; /** + * + * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workaround. */ public java.lang.String getWorkaround() { java.lang.Object ref = workaround_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workaround_ = s; return s; @@ -1176,20 +1321,21 @@ public java.lang.String getWorkaround() { } } /** + * + * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workaround. */ - public com.google.protobuf.ByteString - getWorkaroundBytes() { + public com.google.protobuf.ByteString getWorkaroundBytes() { java.lang.Object ref = workaround_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workaround_ = b; return b; } else { @@ -1197,28 +1343,35 @@ public java.lang.String getWorkaround() { } } /** + * + * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The workaround to set. * @return This builder for chaining. */ - public Builder setWorkaround( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkaround(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workaround_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWorkaround() { @@ -1228,26 +1381,30 @@ public Builder clearWorkaround() { return this; } /** + * + * *
      * Output only. Workaround steps to remediate the event impact, if available.
      * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for workaround to set. * @return This builder for chaining. */ - public Builder setWorkaroundBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkaroundBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workaround_ = 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); } @@ -1257,12 +1414,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.EventUpdate) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.EventUpdate) private static final com.google.cloud.servicehealth.v1.EventUpdate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.EventUpdate(); } @@ -1271,27 +1428,27 @@ public static com.google.cloud.servicehealth.v1.EventUpdate getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EventUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1306,6 +1463,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.EventUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java similarity index 71% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java index 9ef50e6d3f08..167e812d63bd 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventUpdateOrBuilder.java @@ -1,117 +1,164 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface EventUpdateOrBuilder extends +public interface EventUpdateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.EventUpdate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Brief title for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The title. */ java.lang.String getTitle(); /** + * + * *
    * Output only. Brief title for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for title. */ - com.google.protobuf.ByteString - getTitleBytes(); + com.google.protobuf.ByteString getTitleBytes(); /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Symptoms of the event, if available.
    * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The symptom. */ java.lang.String getSymptom(); /** + * + * *
    * Output only. Symptoms of the event, if available.
    * 
* * string symptom = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for symptom. */ - com.google.protobuf.ByteString - getSymptomBytes(); + com.google.protobuf.ByteString getSymptomBytes(); /** + * + * *
    * Output only. Workaround steps to remediate the event impact, if available.
    * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workaround. */ java.lang.String getWorkaround(); /** + * + * *
    * Output only. Workaround steps to remediate the event impact, if available.
    * 
* * string workaround = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workaround. */ - com.google.protobuf.ByteString - getWorkaroundBytes(); + com.google.protobuf.ByteString getWorkaroundBytes(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java similarity index 67% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java index b38561aec21f..c7ac700b260d 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventView.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,6 +20,8 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * The event fields to include in ListEvents API response. This enum lists all
  * possible event views.
@@ -12,9 +29,10 @@
  *
  * Protobuf enum {@code google.cloud.servicehealth.v1.EventView}
  */
-public enum EventView
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum EventView implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Unspecified event view. Default to `EVENT_VIEW_BASIC`.
    * 
@@ -23,6 +41,8 @@ public enum EventView */ EVENT_VIEW_UNSPECIFIED(0), /** + * + * *
    * Includes all fields except `updates`. This view is the default for
    * ListEvents API.
@@ -32,6 +52,8 @@ public enum EventView
    */
   EVENT_VIEW_BASIC(1),
   /**
+   *
+   *
    * 
    * Includes all event fields.
    * 
@@ -43,6 +65,8 @@ public enum EventView ; /** + * + * *
    * Unspecified event view. Default to `EVENT_VIEW_BASIC`.
    * 
@@ -51,6 +75,8 @@ public enum EventView */ public static final int EVENT_VIEW_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Includes all fields except `updates`. This view is the default for
    * ListEvents API.
@@ -60,6 +86,8 @@ public enum EventView
    */
   public static final int EVENT_VIEW_BASIC_VALUE = 1;
   /**
+   *
+   *
    * 
    * Includes all event fields.
    * 
@@ -68,7 +96,6 @@ public enum EventView */ public static final int EVENT_VIEW_FULL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -93,49 +120,51 @@ public static EventView valueOf(int value) { */ public static EventView forNumber(int value) { switch (value) { - case 0: return EVENT_VIEW_UNSPECIFIED; - case 1: return EVENT_VIEW_BASIC; - case 2: return EVENT_VIEW_FULL; - default: return null; + case 0: + return EVENT_VIEW_UNSPECIFIED; + case 1: + return EVENT_VIEW_BASIC; + case 2: + return EVENT_VIEW_FULL; + 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< - EventView> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventView findValueByNumber(int number) { - return EventView.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 EventView findValueByNumber(int number) { + return EventView.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.cloud.servicehealth.v1.EventResourcesProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final EventView[] VALUES = values(); - public static EventView valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventView 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; @@ -151,4 +180,3 @@ private EventView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.servicehealth.v1.EventView) } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java similarity index 66% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java index 91b4052d50b2..e6c145d30bf1 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,49 +20,56 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * Message for getting an event
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.GetEventRequest} */ -public final class GetEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.GetEventRequest) GetEventRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetEventRequest.newBuilder() to construct. private GetEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetEventRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetEventRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetEventRequest.class, com.google.cloud.servicehealth.v1.GetEventRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetEventRequest.class, + com.google.cloud.servicehealth.v1.GetEventRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Unique name of the event in this scope including project
    * and location using the form
@@ -58,7 +80,10 @@ protected java.lang.Object newInstance(
    * `event_id` - Event ID to retrieve.
    * 
* - * 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 @@ -67,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. Unique name of the event in this scope including project
    * and location using the form
@@ -85,17 +111,18 @@ public java.lang.String getName() {
    * `event_id` - Event ID to retrieve.
    * 
* - * 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 { @@ -104,6 +131,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,8 +143,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_); } @@ -140,15 +167,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.cloud.servicehealth.v1.GetEventRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.GetEventRequest other = (com.google.cloud.servicehealth.v1.GetEventRequest) obj; + com.google.cloud.servicehealth.v1.GetEventRequest other = + (com.google.cloud.servicehealth.v1.GetEventRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -168,131 +195,135 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.GetEventRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.GetEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.GetEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.GetEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Message for getting an event
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.GetEventRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.GetEventRequest) com.google.cloud.servicehealth.v1.GetEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetEventRequest.class, com.google.cloud.servicehealth.v1.GetEventRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetEventRequest.class, + com.google.cloud.servicehealth.v1.GetEventRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.GetEventRequest.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(); @@ -302,9 +333,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; } @java.lang.Override @@ -323,8 +354,11 @@ public com.google.cloud.servicehealth.v1.GetEventRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.GetEventRequest buildPartial() { - com.google.cloud.servicehealth.v1.GetEventRequest result = new com.google.cloud.servicehealth.v1.GetEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.GetEventRequest result = + new com.google.cloud.servicehealth.v1.GetEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -340,38 +374,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.GetEventRequest 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.cloud.servicehealth.v1.GetEventRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.GetEventRequest)other); + return mergeFrom((com.google.cloud.servicehealth.v1.GetEventRequest) other); } else { super.mergeFrom(other); return this; @@ -379,7 +414,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.GetEventRequest other) { - if (other == com.google.cloud.servicehealth.v1.GetEventRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.servicehealth.v1.GetEventRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -411,17 +447,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) { @@ -431,10 +469,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Unique name of the event in this scope including project
      * and location using the form
@@ -445,14 +486,16 @@ public Builder mergeFrom(
      * `event_id` - Event ID to retrieve.
      * 
* - * 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; @@ -461,6 +504,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the event in this scope including project
      * and location using the form
@@ -471,16 +516,17 @@ public java.lang.String getName() {
      * `event_id` - Event ID to retrieve.
      * 
* - * 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 { @@ -488,6 +534,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the event in this scope including project
      * and location using the form
@@ -498,19 +546,25 @@ public java.lang.String getName() {
      * `event_id` - Event ID to retrieve.
      * 
* - * 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. Unique name of the event in this scope including project
      * and location using the form
@@ -521,7 +575,10 @@ public Builder setName(
      * `event_id` - Event ID to retrieve.
      * 
* - * 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() { @@ -531,6 +588,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Unique name of the event in this scope including project
      * and location using the form
@@ -541,22 +600,26 @@ public Builder clearName() {
      * `event_id` - Event ID to retrieve.
      * 
* - * 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); } @@ -566,12 +629,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.GetEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.GetEventRequest) private static final com.google.cloud.servicehealth.v1.GetEventRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.GetEventRequest(); } @@ -580,27 +643,27 @@ public static com.google.cloud.servicehealth.v1.GetEventRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -615,6 +678,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.GetEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java index c7777b0d42bc..9d5b047022a7 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetEventRequestOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface GetEventRequestOrBuilder extends +public interface GetEventRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.GetEventRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Unique name of the event in this scope including project
    * and location using the form
@@ -19,11 +37,16 @@ public interface GetEventRequestOrBuilder extends
    * `event_id` - Event ID to retrieve.
    * 
* - * 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. Unique name of the event in this scope including project
    * and location using the form
@@ -34,9 +57,11 @@ public interface GetEventRequestOrBuilder extends
    * `event_id` - Event ID to retrieve.
    * 
* - * 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(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java similarity index 66% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java index 0e604c086dcb..95a6312e01a6 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequest.java @@ -1,49 +1,67 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** - * Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationEventRequest} - */ -public final class GetOrganizationEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationEventRequest} */ +public final class GetOrganizationEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.GetOrganizationEventRequest) GetOrganizationEventRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetOrganizationEventRequest.newBuilder() to construct. private GetOrganizationEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetOrganizationEventRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetOrganizationEventRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Unique name of the event in this scope including organization and
    * event ID using the form
@@ -56,7 +74,10 @@ protected java.lang.Object newInstance(
    * `event_id` - Organization event ID to retrieve.
    * 
* - * 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 @@ -65,14 +86,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. Unique name of the event in this scope including organization and
    * event ID using the form
@@ -85,17 +107,18 @@ public java.lang.String getName() {
    * `event_id` - Organization event ID to retrieve.
    * 
* - * 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 { @@ -104,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,8 +139,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_); } @@ -140,15 +163,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.cloud.servicehealth.v1.GetOrganizationEventRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest other = (com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) obj; + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest other = + (com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -168,127 +191,128 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest 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.cloud.servicehealth.v1.GetOrganizationEventRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } - /** - * Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationEventRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.GetOrganizationEventRequest) com.google.cloud.servicehealth.v1.GetOrganizationEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.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(); @@ -298,13 +322,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest + getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.getDefaultInstance(); } @@ -319,13 +344,17 @@ public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest buildPartial() { - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest result = new com.google.cloud.servicehealth.v1.GetOrganizationEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest result = + new com.google.cloud.servicehealth.v1.GetOrganizationEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest result) { + private void buildPartial0( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -336,38 +365,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.GetOrganizationEven public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.GetOrganizationEventRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.GetOrganizationEventRequest)other); + return mergeFrom((com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) other); } else { super.mergeFrom(other); return this; @@ -375,7 +405,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest other) { - if (other == com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -407,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) { @@ -427,10 +461,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -443,14 +480,16 @@ public Builder mergeFrom(
      * `event_id` - Organization event ID to retrieve.
      * 
* - * 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; @@ -459,6 +498,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -471,16 +512,17 @@ public java.lang.String getName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * 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 { @@ -488,6 +530,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -500,19 +544,25 @@ public java.lang.String getName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * 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. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -525,7 +575,10 @@ public Builder setName(
      * `event_id` - Organization event ID to retrieve.
      * 
* - * 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() { @@ -535,6 +588,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Unique name of the event in this scope including organization and
      * event ID using the form
@@ -547,22 +602,26 @@ public Builder clearName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * 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); } @@ -572,12 +631,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.GetOrganizationEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.GetOrganizationEventRequest) - private static final com.google.cloud.servicehealth.v1.GetOrganizationEventRequest DEFAULT_INSTANCE; + private static final com.google.cloud.servicehealth.v1.GetOrganizationEventRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.GetOrganizationEventRequest(); } @@ -586,27 +646,27 @@ public static com.google.cloud.servicehealth.v1.GetOrganizationEventRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetOrganizationEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -621,6 +681,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.servicehealth.v1.GetOrganizationEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java index f44e91296ed6..a59b8e435b5a 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationEventRequestOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface GetOrganizationEventRequestOrBuilder extends +public interface GetOrganizationEventRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.GetOrganizationEventRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Unique name of the event in this scope including organization and
    * event ID using the form
@@ -21,11 +39,16 @@ public interface GetOrganizationEventRequestOrBuilder extends
    * `event_id` - Organization event ID to retrieve.
    * 
* - * 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. Unique name of the event in this scope including organization and
    * event ID using the form
@@ -38,9 +61,11 @@ public interface GetOrganizationEventRequestOrBuilder extends
    * `event_id` - Organization event ID to retrieve.
    * 
* - * 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(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java similarity index 66% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java index 04a70932be8a..a08e4ef1f789 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequest.java @@ -1,49 +1,67 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** - * Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationImpactRequest} - */ -public final class GetOrganizationImpactRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationImpactRequest} */ +public final class GetOrganizationImpactRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) GetOrganizationImpactRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetOrganizationImpactRequest.newBuilder() to construct. private GetOrganizationImpactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetOrganizationImpactRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetOrganizationImpactRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the resource using the form
    * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -56,7 +74,10 @@ protected java.lang.Object newInstance(
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * 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 @@ -65,14 +86,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. Name of the resource using the form
    * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -85,17 +107,18 @@ public java.lang.String getName() {
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * 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 { @@ -104,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,8 +139,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_); } @@ -140,15 +163,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.cloud.servicehealth.v1.GetOrganizationImpactRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest other = (com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) obj; + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest other = + (com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -168,127 +191,128 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest 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.cloud.servicehealth.v1.GetOrganizationImpactRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } - /** - * Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationImpactRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.servicehealth.v1.GetOrganizationImpactRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) com.google.cloud.servicehealth.v1.GetOrganizationImpactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.Builder.class); + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.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(); @@ -298,13 +322,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest + getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.getDefaultInstance(); } @@ -319,13 +344,17 @@ public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest buildPartial() { - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest result = new com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest result = + new com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest result) { + private void buildPartial0( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -336,38 +365,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.GetOrganizationImpa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.GetOrganizationImpactRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest)other); + return mergeFrom((com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) other); } else { super.mergeFrom(other); return this; @@ -375,7 +405,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest other) { - if (other == com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -407,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) { @@ -427,10 +461,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -443,14 +480,16 @@ public Builder mergeFrom(
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * 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; @@ -459,6 +498,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -471,16 +512,17 @@ public java.lang.String getName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * 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 { @@ -488,6 +530,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -500,19 +544,25 @@ public java.lang.String getName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * 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. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -525,7 +575,10 @@ public Builder setName(
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * 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() { @@ -535,6 +588,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the resource using the form
      * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -547,22 +602,26 @@ public Builder clearName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * 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); } @@ -572,41 +631,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) - private static final com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest DEFAULT_INSTANCE; + private static final com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest(); } - public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationImpactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetOrganizationImpactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -618,9 +679,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java index 62be4fc9936d..5b625ed0ce8f 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/GetOrganizationImpactRequestOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface GetOrganizationImpactRequestOrBuilder extends +public interface GetOrganizationImpactRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.GetOrganizationImpactRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the resource using the form
    * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -21,11 +39,16 @@ public interface GetOrganizationImpactRequestOrBuilder extends
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * 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. Name of the resource using the form
    * `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
@@ -38,9 +61,11 @@ public interface GetOrganizationImpactRequestOrBuilder extends
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * 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(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java similarity index 74% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java index 62cd14bdad61..3f37d87b33dd 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequest.java @@ -1,21 +1,35 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** - * Protobuf type {@code google.cloud.servicehealth.v1.ListEventsRequest} - */ -public final class ListEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.servicehealth.v1.ListEventsRequest} */ +public final class ListEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListEventsRequest) ListEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEventsRequest.newBuilder() to construct. private ListEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEventsRequest() { parent_ = ""; pageToken_ = ""; @@ -25,28 +39,32 @@ private ListEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEventsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListEventsRequest.class, com.google.cloud.servicehealth.v1.ListEventsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListEventsRequest.class, + com.google.cloud.servicehealth.v1.ListEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent value using the form
    * `projects/{project_id}/locations/{location}/events`.
@@ -58,7 +76,10 @@ protected java.lang.Object newInstance(
    * `global`.
    * 
* - * 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 +88,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. Parent value using the form
    * `projects/{project_id}/locations/{location}/events`.
@@ -86,17 +108,18 @@ public java.lang.String getParent() {
    * `global`.
    * 
* - * 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 { @@ -107,6 +130,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of events that should be returned.  Acceptable
    * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -116,6 +141,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -124,9 +150,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -135,6 +164,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -143,14 +173,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; } } /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -159,16 +190,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.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 { @@ -177,9 +207,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms: <br>
@@ -199,6 +232,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -207,14 +241,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. A filter expression that filters resources listed in the
    * response. The expression takes the following forms: <br>
@@ -234,16 +269,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.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 { @@ -254,30 +288,44 @@ public java.lang.String getFilter() { public static final int VIEW_FIELD_NUMBER = 6; private int view_ = 0; /** + * + * *
    * Optional. Event fields to include in response.
    * 
* - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Optional. Event fields to include in response.
    * 
* - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.EventView getView() { - com.google.cloud.servicehealth.v1.EventView result = com.google.cloud.servicehealth.v1.EventView.forNumber(view_); + @java.lang.Override + public com.google.cloud.servicehealth.v1.EventView getView() { + com.google.cloud.servicehealth.v1.EventView result = + com.google.cloud.servicehealth.v1.EventView.forNumber(view_); return result == null ? com.google.cloud.servicehealth.v1.EventView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +337,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_); } @@ -319,8 +366,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -329,8 +375,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } if (view_ != com.google.cloud.servicehealth.v1.EventView.EVENT_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, view_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -340,21 +385,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.cloud.servicehealth.v1.ListEventsRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListEventsRequest other = (com.google.cloud.servicehealth.v1.ListEventsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.servicehealth.v1.ListEventsRequest other = + (com.google.cloud.servicehealth.v1.ListEventsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -383,127 +425,127 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.ListEventsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.ListEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } - /** - * Protobuf type {@code google.cloud.servicehealth.v1.ListEventsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.servicehealth.v1.ListEventsRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListEventsRequest) com.google.cloud.servicehealth.v1.ListEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListEventsRequest.class, com.google.cloud.servicehealth.v1.ListEventsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListEventsRequest.class, + com.google.cloud.servicehealth.v1.ListEventsRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListEventsRequest.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(); @@ -517,9 +559,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; } @java.lang.Override @@ -538,8 +580,11 @@ public com.google.cloud.servicehealth.v1.ListEventsRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.ListEventsRequest buildPartial() { - com.google.cloud.servicehealth.v1.ListEventsRequest result = new com.google.cloud.servicehealth.v1.ListEventsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.ListEventsRequest result = + new com.google.cloud.servicehealth.v1.ListEventsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -567,38 +612,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.ListEventsRequest 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.cloud.servicehealth.v1.ListEventsRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListEventsRequest)other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListEventsRequest) other); } else { super.mergeFrom(other); return this; @@ -606,7 +652,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListEventsRequest other) { - if (other == com.google.cloud.servicehealth.v1.ListEventsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.servicehealth.v1.ListEventsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -654,37 +701,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 48: { - view_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: + { + view_ = input.readEnum(); + 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) { @@ -694,10 +747,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -709,14 +765,16 @@ public Builder mergeFrom(
      * `global`.
      * 
* - * 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; @@ -725,6 +783,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -736,16 +796,17 @@ public java.lang.String getParent() {
      * `global`.
      * 
* - * 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 { @@ -753,6 +814,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -764,19 +827,25 @@ public java.lang.String getParent() {
      * `global`.
      * 
* - * 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. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -788,7 +857,10 @@ public Builder setParent(
      * `global`.
      * 
* - * 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() { @@ -798,6 +870,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent value using the form
      * `projects/{project_id}/locations/{location}/events`.
@@ -809,13 +883,17 @@ public Builder clearParent() {
      * `global`.
      * 
* - * 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; @@ -823,8 +901,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -834,6 +914,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -841,6 +922,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -850,6 +933,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -861,6 +945,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -870,6 +956,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -881,6 +968,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -889,13 +978,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.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; @@ -904,6 +993,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -912,15 +1003,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.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 { @@ -928,6 +1018,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -936,18 +1028,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -956,6 +1052,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -965,6 +1062,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -973,12 +1072,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; @@ -988,6 +1089,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1007,13 +1110,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4 [(.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; @@ -1022,6 +1125,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1041,15 +1146,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.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 { @@ -1057,6 +1161,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1076,18 +1182,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1107,6 +1217,7 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1116,6 +1227,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms: <br>
@@ -1135,12 +1248,14 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; @@ -1150,22 +1265,33 @@ public Builder setFilterBytes( private int view_ = 0; /** + * + * *
      * Optional. Event fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Optional. Event fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1176,24 +1302,35 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * Optional. Event fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventView getView() { - com.google.cloud.servicehealth.v1.EventView result = com.google.cloud.servicehealth.v1.EventView.forNumber(view_); + com.google.cloud.servicehealth.v1.EventView result = + com.google.cloud.servicehealth.v1.EventView.forNumber(view_); return result == null ? com.google.cloud.servicehealth.v1.EventView.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Event fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The view to set. * @return This builder for chaining. */ @@ -1207,11 +1344,16 @@ public Builder setView(com.google.cloud.servicehealth.v1.EventView value) { return this; } /** + * + * *
      * Optional. Event fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearView() { @@ -1220,9 +1362,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); } @@ -1232,12 +1374,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListEventsRequest) private static final com.google.cloud.servicehealth.v1.ListEventsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListEventsRequest(); } @@ -1246,27 +1388,27 @@ public static com.google.cloud.servicehealth.v1.ListEventsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1281,6 +1423,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.ListEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java index daf69c6c76fb..bfe380dbadce 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsRequestOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListEventsRequestOrBuilder extends +public interface ListEventsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListEventsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value using the form
    * `projects/{project_id}/locations/{location}/events`.
@@ -20,11 +38,16 @@ public interface ListEventsRequestOrBuilder extends
    * `global`.
    * 
* - * 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. Parent value using the form
    * `projects/{project_id}/locations/{location}/events`.
@@ -36,13 +59,17 @@ public interface ListEventsRequestOrBuilder extends
    * `global`.
    * 
* - * 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 maximum number of events that should be returned.  Acceptable
    * values are 1 to 100, inclusive. (The default value is 10.) If more results
@@ -52,11 +79,14 @@ public interface ListEventsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -65,10 +95,13 @@ public interface ListEventsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Provide Page token returned by a previous `ListEvents` call to retrieve the
@@ -77,12 +110,14 @@ public interface ListEventsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms: <br>
@@ -102,10 +137,13 @@ public interface ListEventsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms: <br>
@@ -125,26 +163,36 @@ public interface ListEventsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Event fields to include in response.
    * 
* - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Optional. Event fields to include in response.
    * 
* - * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.EventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ com.google.cloud.servicehealth.v1.EventView getView(); diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java similarity index 67% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java index e07aae634b9a..91c6e4cbfca2 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponse.java @@ -1,113 +1,150 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** - * Protobuf type {@code google.cloud.servicehealth.v1.ListEventsResponse} - */ -public final class ListEventsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.servicehealth.v1.ListEventsResponse} */ +public final class ListEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListEventsResponse) ListEventsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEventsResponse.newBuilder() to construct. private ListEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEventsResponse() { events_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = 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 ListEventsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListEventsResponse.class, com.google.cloud.servicehealth.v1.ListEventsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListEventsResponse.class, + com.google.cloud.servicehealth.v1.ListEventsResponse.Builder.class); } public static final int EVENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List events_; /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getEventsList() { return events_; } /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getEventsOrBuilderList() { return events_; } /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getEventsCount() { return events_.size(); } /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.servicehealth.v1.Event getEvents(int index) { return events_.get(index); } /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(int index) { return events_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -117,6 +154,7 @@ public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +163,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; } } /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -142,16 +181,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -160,38 +198,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +246,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,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 { for (int i = 0; i < events_.size(); i++) { output.writeMessage(1, events_.get(i)); } @@ -245,8 +294,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, events_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, events_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +315,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.cloud.servicehealth.v1.ListEventsResponse)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListEventsResponse other = (com.google.cloud.servicehealth.v1.ListEventsResponse) obj; + com.google.cloud.servicehealth.v1.ListEventsResponse other = + (com.google.cloud.servicehealth.v1.ListEventsResponse) obj; - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getEventsList().equals(other.getEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,127 +353,127 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.ListEventsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.ListEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse 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.cloud.servicehealth.v1.ListEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } - /** - * Protobuf type {@code google.cloud.servicehealth.v1.ListEventsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.servicehealth.v1.ListEventsResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListEventsResponse) com.google.cloud.servicehealth.v1.ListEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListEventsResponse.class, com.google.cloud.servicehealth.v1.ListEventsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListEventsResponse.class, + com.google.cloud.servicehealth.v1.ListEventsResponse.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListEventsResponse.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(); @@ -440,15 +486,14 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; } @java.lang.Override @@ -467,14 +512,18 @@ public com.google.cloud.servicehealth.v1.ListEventsResponse build() { @java.lang.Override public com.google.cloud.servicehealth.v1.ListEventsResponse buildPartial() { - com.google.cloud.servicehealth.v1.ListEventsResponse result = new com.google.cloud.servicehealth.v1.ListEventsResponse(this); + com.google.cloud.servicehealth.v1.ListEventsResponse result = + new com.google.cloud.servicehealth.v1.ListEventsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.ListEventsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.servicehealth.v1.ListEventsResponse result) { if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); @@ -501,38 +550,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.ListEventsResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.ListEventsResponse) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListEventsResponse)other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListEventsResponse) other); } else { super.mergeFrom(other); return this; @@ -540,7 +590,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListEventsResponse other) { - if (other == com.google.cloud.servicehealth.v1.ListEventsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.servicehealth.v1.ListEventsResponse.getDefaultInstance()) + return this; if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { @@ -559,9 +610,10 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListEventsResponse ot eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEventsFieldBuilder() + : null; } else { eventsBuilder_.addAllMessages(other.events_); } @@ -608,36 +660,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.servicehealth.v1.Event m = - input.readMessage( - com.google.cloud.servicehealth.v1.Event.parser(), - extensionRegistry); - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(m); - } else { - eventsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.servicehealth.v1.Event m = + input.readMessage( + com.google.cloud.servicehealth.v1.Event.parser(), extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(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) { @@ -647,26 +702,35 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List events_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.Event, com.google.cloud.servicehealth.v1.Event.Builder, com.google.cloud.servicehealth.v1.EventOrBuilder> eventsBuilder_; + com.google.cloud.servicehealth.v1.Event, + com.google.cloud.servicehealth.v1.Event.Builder, + com.google.cloud.servicehealth.v1.EventOrBuilder> + eventsBuilder_; /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { @@ -676,11 +740,15 @@ public java.util.List getEventsList() { } } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getEventsCount() { if (eventsBuilder_ == null) { @@ -690,11 +758,15 @@ public int getEventsCount() { } } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.Event getEvents(int index) { if (eventsBuilder_ == null) { @@ -704,14 +776,17 @@ public com.google.cloud.servicehealth.v1.Event getEvents(int index) { } } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEvents( - int index, com.google.cloud.servicehealth.v1.Event value) { + public Builder setEvents(int index, com.google.cloud.servicehealth.v1.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -725,11 +800,15 @@ public Builder setEvents( return this; } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEvents( int index, com.google.cloud.servicehealth.v1.Event.Builder builderForValue) { @@ -743,11 +822,15 @@ public Builder setEvents( return this; } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addEvents(com.google.cloud.servicehealth.v1.Event value) { if (eventsBuilder_ == null) { @@ -763,14 +846,17 @@ public Builder addEvents(com.google.cloud.servicehealth.v1.Event value) { return this; } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addEvents( - int index, com.google.cloud.servicehealth.v1.Event value) { + public Builder addEvents(int index, com.google.cloud.servicehealth.v1.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -784,14 +870,17 @@ public Builder addEvents( return this; } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addEvents( - com.google.cloud.servicehealth.v1.Event.Builder builderForValue) { + public Builder addEvents(com.google.cloud.servicehealth.v1.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); @@ -802,11 +891,15 @@ public Builder addEvents( return this; } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addEvents( int index, com.google.cloud.servicehealth.v1.Event.Builder builderForValue) { @@ -820,18 +913,21 @@ public Builder addEvents( return this; } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); @@ -839,11 +935,15 @@ public Builder addAllEvents( return this; } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEvents() { if (eventsBuilder_ == null) { @@ -856,11 +956,15 @@ public Builder clearEvents() { return this; } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { @@ -873,39 +977,50 @@ public Builder removeEvents(int index) { return this; } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.Event.Builder getEventsBuilder( - int index) { + public com.google.cloud.servicehealth.v1.Event.Builder getEventsBuilder(int index) { return getEventsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(int index) { if (eventsBuilder_ == null) { - return events_.get(index); } else { + return events_.get(index); + } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getEventsOrBuilderList() { + public java.util.List + getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { @@ -913,49 +1028,62 @@ public com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder( } } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.Event.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - com.google.cloud.servicehealth.v1.Event.getDefaultInstance()); + return getEventsFieldBuilder() + .addBuilder(com.google.cloud.servicehealth.v1.Event.getDefaultInstance()); } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.Event.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, com.google.cloud.servicehealth.v1.Event.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.Event.Builder addEventsBuilder(int index) { + return getEventsFieldBuilder() + .addBuilder(index, com.google.cloud.servicehealth.v1.Event.getDefaultInstance()); } /** + * + * *
      * Output only. List of events.
      * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getEventsBuilderList() { + public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.Event, com.google.cloud.servicehealth.v1.Event.Builder, com.google.cloud.servicehealth.v1.EventOrBuilder> + com.google.cloud.servicehealth.v1.Event, + com.google.cloud.servicehealth.v1.Event.Builder, + com.google.cloud.servicehealth.v1.EventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.Event, com.google.cloud.servicehealth.v1.Event.Builder, com.google.cloud.servicehealth.v1.EventOrBuilder>( - events_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + eventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.Event, + com.google.cloud.servicehealth.v1.Event.Builder, + com.google.cloud.servicehealth.v1.EventOrBuilder>( + events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; @@ -963,6 +1091,8 @@ public com.google.cloud.servicehealth.v1.Event.Builder addEventsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -972,13 +1102,13 @@ public com.google.cloud.servicehealth.v1.Event.Builder addEventsBuilder(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -987,6 +1117,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -996,15 +1128,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1012,6 +1143,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -1021,18 +1154,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -1042,6 +1179,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1051,6 +1189,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -1060,12 +1200,14 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1075,6 +1217,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1082,35 +1225,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1118,31 +1269,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1150,17 +1307,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1168,50 +1329,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1219,9 +1388,9 @@ public Builder addUnreachableBytes( 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); } @@ -1231,12 +1400,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListEventsResponse) private static final com.google.cloud.servicehealth.v1.ListEventsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListEventsResponse(); } @@ -1245,27 +1414,27 @@ public static com.google.cloud.servicehealth.v1.ListEventsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1280,6 +1449,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.ListEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java index 8c60081ec7a5..32c723f80cd8 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListEventsResponseOrBuilder.java @@ -1,58 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListEventsResponseOrBuilder extends +public interface ListEventsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListEventsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getEventsList(); + java.util.List getEventsList(); /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.servicehealth.v1.Event getEvents(int index); /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getEventsCount(); /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getEventsOrBuilderList(); /** + * + * *
    * Output only. List of events.
    * 
* - * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder( - int index); + com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(int index); /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -62,10 +98,13 @@ com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as page_token to retrieve
@@ -75,49 +114,59 @@ com.google.cloud.servicehealth.v1.EventOrBuilder getEventsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java similarity index 72% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java index 5e410cf2d6d2..9f24951e96b3 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequest.java @@ -1,21 +1,35 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** - * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsRequest} - */ -public final class ListOrganizationEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsRequest} */ +public final class ListOrganizationEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) ListOrganizationEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListOrganizationEventsRequest.newBuilder() to construct. private ListOrganizationEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListOrganizationEventsRequest() { parent_ = ""; pageToken_ = ""; @@ -25,28 +39,32 @@ private ListOrganizationEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListOrganizationEventsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -60,7 +78,10 @@ protected java.lang.Object newInstance(
    * `global`.
    * 
* - * 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 @@ -69,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. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -90,17 +112,18 @@ public java.lang.String getParent() {
    * `global`.
    * 
* - * 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 { @@ -111,6 +134,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of events that should be returned.  Acceptable
    * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -120,6 +145,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -128,9 +154,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -142,6 +171,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -150,14 +180,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; } } /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -169,16 +200,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.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 { @@ -187,9 +217,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms:
@@ -210,6 +243,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -218,14 +252,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. A filter expression that filters resources listed in the
    * response. The expression takes the following forms:
@@ -246,16 +281,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.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 { @@ -266,30 +300,46 @@ public java.lang.String getFilter() { public static final int VIEW_FIELD_NUMBER = 6; private int view_ = 0; /** + * + * *
    * Optional. OrganizationEvent fields to include in response.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Optional. OrganizationEvent fields to include in response.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEventView getView() { - com.google.cloud.servicehealth.v1.OrganizationEventView result = com.google.cloud.servicehealth.v1.OrganizationEventView.forNumber(view_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEventView.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.servicehealth.v1.OrganizationEventView getView() { + com.google.cloud.servicehealth.v1.OrganizationEventView result = + com.google.cloud.servicehealth.v1.OrganizationEventView.forNumber(view_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEventView.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -315,7 +364,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } - if (view_ != com.google.cloud.servicehealth.v1.OrganizationEventView.ORGANIZATION_EVENT_VIEW_UNSPECIFIED.getNumber()) { + if (view_ + != com.google.cloud.servicehealth.v1.OrganizationEventView + .ORGANIZATION_EVENT_VIEW_UNSPECIFIED + .getNumber()) { output.writeEnum(6, view_); } getUnknownFields().writeTo(output); @@ -331,8 +383,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -340,9 +391,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } - if (view_ != com.google.cloud.servicehealth.v1.OrganizationEventView.ORGANIZATION_EVENT_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, view_); + if (view_ + != com.google.cloud.servicehealth.v1.OrganizationEventView + .ORGANIZATION_EVENT_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -352,21 +405,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.cloud.servicehealth.v1.ListOrganizationEventsRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest other = (com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest other = + (com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -395,127 +445,128 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest 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.cloud.servicehealth.v1.ListOrganizationEventsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } - /** - * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) com.google.cloud.servicehealth.v1.ListOrganizationEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.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(); @@ -529,13 +580,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest + getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.getDefaultInstance(); } @@ -550,13 +602,17 @@ public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest build() { @java.lang.Override public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest buildPartial() { - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest result = new com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest result = + new com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest result) { + private void buildPartial0( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -579,46 +635,50 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationEve public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.ListOrganizationEventsRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest)other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest other) { - if (other == com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest other) { + if (other + == com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -666,37 +726,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 48: { - view_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: + { + view_ = input.readEnum(); + 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) { @@ -706,10 +772,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -723,14 +792,16 @@ public Builder mergeFrom(
      * `global`.
      * 
* - * 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; @@ -739,6 +810,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -752,16 +825,17 @@ public java.lang.String getParent() {
      * `global`.
      * 
* - * 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 { @@ -769,6 +843,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -782,19 +858,25 @@ public java.lang.String getParent() {
      * `global`.
      * 
* - * 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. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -808,7 +890,10 @@ public Builder setParent(
      * `global`.
      * 
* - * 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() { @@ -818,6 +903,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -831,13 +918,17 @@ public Builder clearParent() {
      * `global`.
      * 
* - * 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; @@ -845,8 +936,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -856,6 +949,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -863,6 +957,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -872,6 +968,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -883,6 +980,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of events that should be returned.  Acceptable
      * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -892,6 +991,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -903,6 +1003,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -914,13 +1016,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.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; @@ -929,6 +1031,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -940,15 +1044,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.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 { @@ -956,6 +1059,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -967,18 +1072,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -990,6 +1099,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -999,6 +1109,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -1010,12 +1122,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; @@ -1025,6 +1139,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1045,13 +1161,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4 [(.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; @@ -1060,6 +1176,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1080,15 +1198,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.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 { @@ -1096,6 +1213,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1116,18 +1235,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1148,6 +1271,7 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1157,6 +1281,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression takes the following forms:
@@ -1177,12 +1303,14 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; @@ -1192,22 +1320,33 @@ public Builder setFilterBytes( private int view_ = 0; /** + * + * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1218,24 +1357,37 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEventView getView() { - com.google.cloud.servicehealth.v1.OrganizationEventView result = com.google.cloud.servicehealth.v1.OrganizationEventView.forNumber(view_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEventView.UNRECOGNIZED : result; + com.google.cloud.servicehealth.v1.OrganizationEventView result = + com.google.cloud.servicehealth.v1.OrganizationEventView.forNumber(view_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEventView.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The view to set. * @return This builder for chaining. */ @@ -1249,11 +1401,16 @@ public Builder setView(com.google.cloud.servicehealth.v1.OrganizationEventView v return this; } /** + * + * *
      * Optional. OrganizationEvent fields to include in response.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearView() { @@ -1262,9 +1419,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); } @@ -1274,41 +1431,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) - private static final com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest(); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrganizationEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListOrganizationEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1320,9 +1479,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java index 9d563de9da6c..c2fcf03907da 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsRequestOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListOrganizationEventsRequestOrBuilder extends +public interface ListOrganizationEventsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListOrganizationEventsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -22,11 +40,16 @@ public interface ListOrganizationEventsRequestOrBuilder extends
    * `global`.
    * 
* - * 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. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationEvents`.
@@ -40,13 +63,17 @@ public interface ListOrganizationEventsRequestOrBuilder extends
    * `global`.
    * 
* - * 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 maximum number of events that should be returned.  Acceptable
    * values are `1` to `100`, inclusive. (The default value is `10`.) If more
@@ -56,11 +83,14 @@ public interface ListOrganizationEventsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -72,10 +102,13 @@ public interface ListOrganizationEventsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -87,12 +120,14 @@ public interface ListOrganizationEventsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms:
@@ -113,10 +148,13 @@ public interface ListOrganizationEventsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression takes the following forms:
@@ -137,26 +175,36 @@ public interface ListOrganizationEventsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. OrganizationEvent fields to include in response.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Optional. OrganizationEvent fields to include in response.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.servicehealth.v1.OrganizationEventView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ com.google.cloud.servicehealth.v1.OrganizationEventView getView(); diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java similarity index 66% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java index c4249708cf16..26c79f3fd22c 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponse.java @@ -1,113 +1,153 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** - * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsResponse} - */ -public final class ListOrganizationEventsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsResponse} */ +public final class ListOrganizationEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) ListOrganizationEventsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListOrganizationEventsResponse.newBuilder() to construct. - private ListOrganizationEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListOrganizationEventsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListOrganizationEventsResponse() { organizationEvents_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = 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 ListOrganizationEventsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.Builder.class); } public static final int ORGANIZATION_EVENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List organizationEvents_; /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getOrganizationEventsList() { + public java.util.List + getOrganizationEventsList() { return organizationEvents_; } /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getOrganizationEventsOrBuilderList() { return organizationEvents_; } /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getOrganizationEventsCount() { return organizationEvents_.size(); } /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvents(int index) { return organizationEvents_.get(index); } /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEventsOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder + getOrganizationEventsOrBuilder(int index) { return organizationEvents_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -117,6 +157,7 @@ public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizat
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +166,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; } } /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -142,16 +184,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -160,38 +201,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +249,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +277,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 < organizationEvents_.size(); i++) { output.writeMessage(1, organizationEvents_.get(i)); } @@ -245,8 +297,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < organizationEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, organizationEvents_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, organizationEvents_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +319,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.cloud.servicehealth.v1.ListOrganizationEventsResponse)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse other = (com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse) obj; + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse other = + (com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse) obj; - if (!getOrganizationEventsList() - .equals(other.getOrganizationEventsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getOrganizationEventsList().equals(other.getOrganizationEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,127 +357,128 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse 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.cloud.servicehealth.v1.ListOrganizationEventsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } - /** - * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationEventsResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) com.google.cloud.servicehealth.v1.ListOrganizationEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.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(); @@ -440,19 +491,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse + getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.getDefaultInstance(); } @@ -467,14 +518,18 @@ public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse build() @java.lang.Override public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse buildPartial() { - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result = new com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse(this); + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result = + new com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result) { if (organizationEventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { organizationEvents_ = java.util.Collections.unmodifiableList(organizationEvents_); @@ -486,7 +541,8 @@ private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.ListOr } } - private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result) { + private void buildPartial0( + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -501,46 +557,50 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationEve public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.ListOrganizationEventsResponse) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse)other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse other) { - if (other == com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse other) { + if (other + == com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.getDefaultInstance()) + return this; if (organizationEventsBuilder_ == null) { if (!other.organizationEvents_.isEmpty()) { if (organizationEvents_.isEmpty()) { @@ -559,9 +619,10 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationEvent organizationEventsBuilder_ = null; organizationEvents_ = other.organizationEvents_; bitField0_ = (bitField0_ & ~0x00000001); - organizationEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrganizationEventsFieldBuilder() : null; + organizationEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrganizationEventsFieldBuilder() + : null; } else { organizationEventsBuilder_.addAllMessages(other.organizationEvents_); } @@ -608,36 +669,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.servicehealth.v1.OrganizationEvent m = - input.readMessage( - com.google.cloud.servicehealth.v1.OrganizationEvent.parser(), - extensionRegistry); - if (organizationEventsBuilder_ == null) { - ensureOrganizationEventsIsMutable(); - organizationEvents_.add(m); - } else { - organizationEventsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.servicehealth.v1.OrganizationEvent m = + input.readMessage( + com.google.cloud.servicehealth.v1.OrganizationEvent.parser(), + extensionRegistry); + if (organizationEventsBuilder_ == null) { + ensureOrganizationEventsIsMutable(); + organizationEvents_.add(m); + } else { + organizationEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(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) { @@ -647,28 +712,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List organizationEvents_ = - java.util.Collections.emptyList(); + private java.util.List + organizationEvents_ = java.util.Collections.emptyList(); + private void ensureOrganizationEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - organizationEvents_ = new java.util.ArrayList(organizationEvents_); + organizationEvents_ = + new java.util.ArrayList( + organizationEvents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationEvent, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder> organizationEventsBuilder_; + com.google.cloud.servicehealth.v1.OrganizationEvent, + com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, + com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder> + organizationEventsBuilder_; /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getOrganizationEventsList() { + public java.util.List + getOrganizationEventsList() { if (organizationEventsBuilder_ == null) { return java.util.Collections.unmodifiableList(organizationEvents_); } else { @@ -676,11 +753,15 @@ public java.util.List getOr } } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getOrganizationEventsCount() { if (organizationEventsBuilder_ == null) { @@ -690,11 +771,15 @@ public int getOrganizationEventsCount() { } } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvents(int index) { if (organizationEventsBuilder_ == null) { @@ -704,11 +789,15 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvents } } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOrganizationEvents( int index, com.google.cloud.servicehealth.v1.OrganizationEvent value) { @@ -725,11 +814,15 @@ public Builder setOrganizationEvents( return this; } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOrganizationEvents( int index, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder builderForValue) { @@ -743,13 +836,18 @@ public Builder setOrganizationEvents( return this; } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addOrganizationEvents(com.google.cloud.servicehealth.v1.OrganizationEvent value) { + public Builder addOrganizationEvents( + com.google.cloud.servicehealth.v1.OrganizationEvent value) { if (organizationEventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -763,11 +861,15 @@ public Builder addOrganizationEvents(com.google.cloud.servicehealth.v1.Organizat return this; } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addOrganizationEvents( int index, com.google.cloud.servicehealth.v1.OrganizationEvent value) { @@ -784,11 +886,15 @@ public Builder addOrganizationEvents( return this; } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addOrganizationEvents( com.google.cloud.servicehealth.v1.OrganizationEvent.Builder builderForValue) { @@ -802,11 +908,15 @@ public Builder addOrganizationEvents( return this; } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addOrganizationEvents( int index, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder builderForValue) { @@ -820,18 +930,21 @@ public Builder addOrganizationEvents( return this; } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllOrganizationEvents( java.lang.Iterable values) { if (organizationEventsBuilder_ == null) { ensureOrganizationEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, organizationEvents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, organizationEvents_); onChanged(); } else { organizationEventsBuilder_.addAllMessages(values); @@ -839,11 +952,15 @@ public Builder addAllOrganizationEvents( return this; } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearOrganizationEvents() { if (organizationEventsBuilder_ == null) { @@ -856,11 +973,15 @@ public Builder clearOrganizationEvents() { return this; } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeOrganizationEvents(int index) { if (organizationEventsBuilder_ == null) { @@ -873,39 +994,52 @@ public Builder removeOrganizationEvents(int index) { return this; } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder getOrganizationEventsBuilder( int index) { return getOrganizationEventsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEventsOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder + getOrganizationEventsOrBuilder(int index) { if (organizationEventsBuilder_ == null) { - return organizationEvents_.get(index); } else { + return organizationEvents_.get(index); + } else { return organizationEventsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getOrganizationEventsOrBuilderList() { + public java.util.List + getOrganizationEventsOrBuilderList() { if (organizationEventsBuilder_ != null) { return organizationEventsBuilder_.getMessageOrBuilderList(); } else { @@ -913,45 +1047,65 @@ public com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizat } } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder addOrganizationEventsBuilder() { - return getOrganizationEventsFieldBuilder().addBuilder( - com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder + addOrganizationEventsBuilder() { + return getOrganizationEventsFieldBuilder() + .addBuilder(com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()); } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder addOrganizationEventsBuilder( int index) { - return getOrganizationEventsFieldBuilder().addBuilder( - index, com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()); + return getOrganizationEventsFieldBuilder() + .addBuilder( + index, com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()); } /** + * + * *
      * Output only. List of organization events affecting an organization.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getOrganizationEventsBuilderList() { + public java.util.List + getOrganizationEventsBuilderList() { return getOrganizationEventsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationEvent, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder> + com.google.cloud.servicehealth.v1.OrganizationEvent, + com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, + com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder> getOrganizationEventsFieldBuilder() { if (organizationEventsBuilder_ == null) { - organizationEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationEvent, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder>( + organizationEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.OrganizationEvent, + com.google.cloud.servicehealth.v1.OrganizationEvent.Builder, + com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder>( organizationEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -963,6 +1117,8 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder addOrganizati private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -972,13 +1128,13 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent.Builder addOrganizati
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -987,6 +1143,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -996,15 +1154,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1012,6 +1169,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1021,18 +1180,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1042,6 +1205,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1051,6 +1215,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1060,12 +1226,14 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1075,6 +1243,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1082,35 +1251,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1118,31 +1295,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1150,17 +1333,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1168,50 +1355,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1219,9 +1414,9 @@ public Builder addUnreachableBytes( 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); } @@ -1231,41 +1426,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) - private static final com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse(); } - public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrganizationEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListOrganizationEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,9 +1474,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java index 3beedbe021d4..f04842afd200 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationEventsResponseOrBuilder.java @@ -1,58 +1,95 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListOrganizationEventsResponseOrBuilder extends +public interface ListOrganizationEventsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListOrganizationEventsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getOrganizationEventsList(); + java.util.List getOrganizationEventsList(); /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvents(int index); /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getOrganizationEventsCount(); /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getOrganizationEventsOrBuilderList(); /** + * + * *
    * Output only. List of organization events affecting an organization.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationEvent organization_events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEventsOrBuilder( int index); /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -62,10 +99,13 @@ com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEven
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -75,49 +115,59 @@ com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder getOrganizationEven
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java similarity index 74% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java index 04c5c040a461..e40a1ec74e3e 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,21 +20,25 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * Message for requesting list of OrganizationImpacts
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsRequest} */ -public final class ListOrganizationImpactsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListOrganizationImpactsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) ListOrganizationImpactsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListOrganizationImpactsRequest.newBuilder() to construct. - private ListOrganizationImpactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListOrganizationImpactsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListOrganizationImpactsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,28 +47,32 @@ private ListOrganizationImpactsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListOrganizationImpactsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -60,7 +83,10 @@ protected java.lang.Object newInstance(
    * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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 @@ -69,14 +95,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. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -87,17 +114,18 @@ public java.lang.String getParent() {
    * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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 { @@ -108,6 +136,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of events that should be returned. Acceptable
    * values are `1` to `100`, inclusive. The default value is `10`.
@@ -120,6 +150,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -128,9 +159,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -142,6 +176,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -150,14 +185,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; } } /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -169,16 +205,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.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 { @@ -187,9 +222,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression is in the form of `field:value` for checking if a
@@ -210,6 +248,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -218,14 +257,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. A filter expression that filters resources listed in the
    * response. The expression is in the form of `field:value` for checking if a
@@ -246,16 +286,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.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 { @@ -264,6 +303,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,8 +315,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_); } @@ -302,8 +341,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -319,21 +357,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.cloud.servicehealth.v1.ListOrganizationImpactsRequest)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest other = (com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest other = + (com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -359,131 +394,136 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest 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.cloud.servicehealth.v1.ListOrganizationImpactsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Message for requesting list of OrganizationImpacts
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.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(); @@ -496,13 +536,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest + getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.getDefaultInstance(); } @@ -517,13 +558,17 @@ public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest build() @java.lang.Override public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest buildPartial() { - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest result = new com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest result = + new com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest result) { + private void buildPartial0( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -543,46 +588,50 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationImp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.ListOrganizationImpactsRequest) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest)other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest other) { - if (other == com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest other) { + if (other + == com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -627,32 +676,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = 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) { @@ -662,10 +716,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -676,14 +733,16 @@ public Builder mergeFrom(
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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; @@ -692,6 +751,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -702,16 +763,17 @@ public java.lang.String getParent() {
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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 { @@ -719,6 +781,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -729,19 +793,25 @@ public java.lang.String getParent() {
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -752,7 +822,10 @@ public Builder setParent(
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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() { @@ -762,6 +835,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent value using the form
      * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -772,13 +847,17 @@ public Builder clearParent() {
      * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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; @@ -786,8 +865,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of events that should be returned. Acceptable
      * values are `1` to `100`, inclusive. The default value is `10`.
@@ -800,6 +881,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -807,6 +889,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of events that should be returned. Acceptable
      * values are `1` to `100`, inclusive. The default value is `10`.
@@ -819,6 +903,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -830,6 +915,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of events that should be returned. Acceptable
      * values are `1` to `100`, inclusive. The default value is `10`.
@@ -842,6 +929,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -853,6 +941,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -864,13 +954,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.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; @@ -879,6 +969,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -890,15 +982,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.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 { @@ -906,6 +997,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -917,18 +1010,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -940,6 +1037,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -949,6 +1047,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      *
@@ -960,12 +1060,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.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_ |= 0x00000004; @@ -975,6 +1077,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -995,13 +1099,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4 [(.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; @@ -1010,6 +1114,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -1030,15 +1136,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.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 { @@ -1046,6 +1151,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -1066,18 +1173,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -1098,6 +1209,7 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1107,6 +1219,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. A filter expression that filters resources listed in the
      * response. The expression is in the form of `field:value` for checking if a
@@ -1127,21 +1241,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.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_ |= 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); } @@ -1151,41 +1267,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) - private static final com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest(); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrganizationImpactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListOrganizationImpactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,9 +1315,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java index 2ab549adaab8..cce1efb95967 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsRequestOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListOrganizationImpactsRequestOrBuilder extends +public interface ListOrganizationImpactsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -19,11 +37,16 @@ public interface ListOrganizationImpactsRequestOrBuilder extends
    * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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. Parent value using the form
    * `organizations/{organization_id}/locations/{location}/organizationImpacts`.
@@ -34,13 +57,17 @@ public interface ListOrganizationImpactsRequestOrBuilder extends
    * ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_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 maximum number of events that should be returned. Acceptable
    * values are `1` to `100`, inclusive. The default value is `10`.
@@ -53,11 +80,14 @@ public interface ListOrganizationImpactsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -69,10 +99,13 @@ public interface ListOrganizationImpactsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    *
@@ -84,12 +117,14 @@ public interface ListOrganizationImpactsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression is in the form of `field:value` for checking if a
@@ -110,10 +145,13 @@ public interface ListOrganizationImpactsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. A filter expression that filters resources listed in the
    * response. The expression is in the form of `field:value` for checking if a
@@ -134,8 +172,8 @@ public interface ListOrganizationImpactsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java similarity index 67% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java index bbd5b0cceb4c..a151469ba4b9 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponse.java @@ -1,123 +1,163 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -/** - * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} - */ -public final class ListOrganizationImpactsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} */ +public final class ListOrganizationImpactsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) ListOrganizationImpactsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListOrganizationImpactsResponse.newBuilder() to construct. - private ListOrganizationImpactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListOrganizationImpactsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListOrganizationImpactsResponse() { organizationImpacts_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = 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 ListOrganizationImpactsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.Builder.class); } public static final int ORGANIZATION_IMPACTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List organizationImpacts_; /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getOrganizationImpactsList() { + public java.util.List + getOrganizationImpactsList() { return organizationImpacts_; } /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getOrganizationImpactsOrBuilderList() { return organizationImpacts_; } /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getOrganizationImpactsCount() { return organizationImpacts_.size(); } /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpacts(int index) { return organizationImpacts_.get(index); } /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImpactsOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder + getOrganizationImpactsOrBuilder(int index) { return organizationImpacts_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -127,6 +167,7 @@ public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganiza
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -135,14 +176,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; } } /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -152,16 +194,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -170,38 +211,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -209,20 +259,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +287,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 < organizationImpacts_.size(); i++) { output.writeMessage(1, organizationImpacts_.get(i)); } @@ -255,8 +307,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < organizationImpacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, organizationImpacts_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, organizationImpacts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -277,19 +329,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.cloud.servicehealth.v1.ListOrganizationImpactsResponse)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse other = (com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) obj; + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse other = + (com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) obj; - if (!getOrganizationImpactsList() - .equals(other.getOrganizationImpactsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getOrganizationImpactsList().equals(other.getOrganizationImpactsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -317,127 +367,130 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse + 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse 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.cloud.servicehealth.v1.ListOrganizationImpactsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } - /** - * Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.Builder.class); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.Builder.class); } - // Construct using com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.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(); @@ -450,19 +503,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse + getDefaultInstanceForType() { return com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.getDefaultInstance(); } @@ -477,14 +530,18 @@ public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse build() @java.lang.Override public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse buildPartial() { - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result = new com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse(this); + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result = + new com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result) { if (organizationImpactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { organizationImpacts_ = java.util.Collections.unmodifiableList(organizationImpacts_); @@ -496,7 +553,8 @@ private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.ListOr } } - private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result) { + private void buildPartial0( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -511,46 +569,50 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.ListOrganizationImp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.ListOrganizationImpactsResponse) { - return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse)other); + return mergeFrom((com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse other) { - if (other == com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse other) { + if (other + == com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.getDefaultInstance()) + return this; if (organizationImpactsBuilder_ == null) { if (!other.organizationImpacts_.isEmpty()) { if (organizationImpacts_.isEmpty()) { @@ -569,9 +631,10 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.ListOrganizationImpac organizationImpactsBuilder_ = null; organizationImpacts_ = other.organizationImpacts_; bitField0_ = (bitField0_ & ~0x00000001); - organizationImpactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrganizationImpactsFieldBuilder() : null; + organizationImpactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrganizationImpactsFieldBuilder() + : null; } else { organizationImpactsBuilder_.addAllMessages(other.organizationImpacts_); } @@ -618,36 +681,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.servicehealth.v1.OrganizationImpact m = - input.readMessage( - com.google.cloud.servicehealth.v1.OrganizationImpact.parser(), - extensionRegistry); - if (organizationImpactsBuilder_ == null) { - ensureOrganizationImpactsIsMutable(); - organizationImpacts_.add(m); - } else { - organizationImpactsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.servicehealth.v1.OrganizationImpact m = + input.readMessage( + com.google.cloud.servicehealth.v1.OrganizationImpact.parser(), + extensionRegistry); + if (organizationImpactsBuilder_ == null) { + ensureOrganizationImpactsIsMutable(); + organizationImpacts_.add(m); + } else { + organizationImpactsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(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) { @@ -657,30 +724,42 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List organizationImpacts_ = - java.util.Collections.emptyList(); + private java.util.List + organizationImpacts_ = java.util.Collections.emptyList(); + private void ensureOrganizationImpactsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - organizationImpacts_ = new java.util.ArrayList(organizationImpacts_); + organizationImpacts_ = + new java.util.ArrayList( + organizationImpacts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationImpact, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder> organizationImpactsBuilder_; + com.google.cloud.servicehealth.v1.OrganizationImpact, + com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, + com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder> + organizationImpactsBuilder_; /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getOrganizationImpactsList() { + public java.util.List + getOrganizationImpactsList() { if (organizationImpactsBuilder_ == null) { return java.util.Collections.unmodifiableList(organizationImpacts_); } else { @@ -688,13 +767,17 @@ public java.util.List getO } } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getOrganizationImpactsCount() { if (organizationImpactsBuilder_ == null) { @@ -704,13 +787,17 @@ public int getOrganizationImpactsCount() { } } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpacts(int index) { if (organizationImpactsBuilder_ == null) { @@ -720,13 +807,17 @@ public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpac } } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOrganizationImpacts( int index, com.google.cloud.servicehealth.v1.OrganizationImpact value) { @@ -743,13 +834,17 @@ public Builder setOrganizationImpacts( return this; } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOrganizationImpacts( int index, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder builderForValue) { @@ -763,15 +858,20 @@ public Builder setOrganizationImpacts( return this; } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addOrganizationImpacts(com.google.cloud.servicehealth.v1.OrganizationImpact value) { + public Builder addOrganizationImpacts( + com.google.cloud.servicehealth.v1.OrganizationImpact value) { if (organizationImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -785,13 +885,17 @@ public Builder addOrganizationImpacts(com.google.cloud.servicehealth.v1.Organiza return this; } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addOrganizationImpacts( int index, com.google.cloud.servicehealth.v1.OrganizationImpact value) { @@ -808,13 +912,17 @@ public Builder addOrganizationImpacts( return this; } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addOrganizationImpacts( com.google.cloud.servicehealth.v1.OrganizationImpact.Builder builderForValue) { @@ -828,13 +936,17 @@ public Builder addOrganizationImpacts( return this; } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addOrganizationImpacts( int index, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder builderForValue) { @@ -848,20 +960,23 @@ public Builder addOrganizationImpacts( return this; } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllOrganizationImpacts( java.lang.Iterable values) { if (organizationImpactsBuilder_ == null) { ensureOrganizationImpactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, organizationImpacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, organizationImpacts_); onChanged(); } else { organizationImpactsBuilder_.addAllMessages(values); @@ -869,13 +984,17 @@ public Builder addAllOrganizationImpacts( return this; } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearOrganizationImpacts() { if (organizationImpactsBuilder_ == null) { @@ -888,13 +1007,17 @@ public Builder clearOrganizationImpacts() { return this; } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeOrganizationImpacts(int index) { if (organizationImpactsBuilder_ == null) { @@ -907,45 +1030,58 @@ public Builder removeOrganizationImpacts(int index) { return this; } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder getOrganizationImpactsBuilder( - int index) { + public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder + getOrganizationImpactsBuilder(int index) { return getOrganizationImpactsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImpactsOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder + getOrganizationImpactsOrBuilder(int index) { if (organizationImpactsBuilder_ == null) { - return organizationImpacts_.get(index); } else { + return organizationImpacts_.get(index); + } else { return organizationImpactsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getOrganizationImpactsOrBuilderList() { + public java.util.List + getOrganizationImpactsOrBuilderList() { if (organizationImpactsBuilder_ != null) { return organizationImpactsBuilder_.getMessageOrBuilderList(); } else { @@ -953,51 +1089,71 @@ public com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganiza } } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder addOrganizationImpactsBuilder() { - return getOrganizationImpactsFieldBuilder().addBuilder( - com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder + addOrganizationImpactsBuilder() { + return getOrganizationImpactsFieldBuilder() + .addBuilder(com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()); } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder addOrganizationImpactsBuilder( - int index) { - return getOrganizationImpactsFieldBuilder().addBuilder( - index, com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder + addOrganizationImpactsBuilder(int index) { + return getOrganizationImpactsFieldBuilder() + .addBuilder( + index, com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()); } /** + * + * *
      * Output only. List of
      * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
      * for an organization affected by service health events.
      * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getOrganizationImpactsBuilderList() { + public java.util.List + getOrganizationImpactsBuilderList() { return getOrganizationImpactsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationImpact, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder> + com.google.cloud.servicehealth.v1.OrganizationImpact, + com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, + com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder> getOrganizationImpactsFieldBuilder() { if (organizationImpactsBuilder_ == null) { - organizationImpactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.OrganizationImpact, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder>( + organizationImpactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.OrganizationImpact, + com.google.cloud.servicehealth.v1.OrganizationImpact.Builder, + com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder>( organizationImpacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1009,6 +1165,8 @@ public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder addOrganizat private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1018,13 +1176,13 @@ public com.google.cloud.servicehealth.v1.OrganizationImpact.Builder addOrganizat
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1033,6 +1191,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1042,15 +1202,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1058,6 +1217,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1067,18 +1228,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1088,6 +1253,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1097,6 +1263,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Output only. The continuation token, used to page through large result
      * sets. Provide this value in a subsequent request as `page_token` to
@@ -1106,12 +1274,14 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1121,6 +1291,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1128,35 +1299,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1164,31 +1343,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1196,17 +1381,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1214,50 +1403,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Output only. Locations that could not be reached.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1265,9 +1462,9 @@ public Builder addUnreachableBytes( 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); } @@ -1277,41 +1474,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) - private static final com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse(); } - public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse getDefaultInstance() { + public static com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrganizationImpactsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListOrganizationImpactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1323,9 +1522,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse getDefaultInstanceForType() { + public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java index bf8de80b40d8..5c93eabe9b0c 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ListOrganizationImpactsResponseOrBuilder.java @@ -1,68 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ListOrganizationImpactsResponseOrBuilder extends +public interface ListOrganizationImpactsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getOrganizationImpactsList(); + java.util.List getOrganizationImpactsList(); /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpacts(int index); /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getOrganizationImpactsCount(); /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getOrganizationImpactsOrBuilderList(); /** + * + * *
    * Output only. List of
    * [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
    * for an organization affected by service health events.
    * 
* - * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.OrganizationImpact organization_impacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImpactsOrBuilder( int index); /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -72,10 +109,13 @@ com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImp
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. The continuation token, used to page through large result
    * sets. Provide this value in a subsequent request as `page_token` to
@@ -85,49 +125,59 @@ com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder getOrganizationImp
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Output only. Locations that could not be reached.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java similarity index 66% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java index 04159d4a082f..f059321ecb74 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Location.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,54 +20,62 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * Represents the locations impacted by the event.
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Location} */ -public final class Location extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.Location) LocationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Location() { locationName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Location(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Location.class, com.google.cloud.servicehealth.v1.Location.Builder.class); + com.google.cloud.servicehealth.v1.Location.class, + com.google.cloud.servicehealth.v1.Location.Builder.class); } public static final int LOCATION_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object locationName_ = ""; /** + * + * *
    * Location impacted by the event. Example: `"us-central1"`
    * 
* * string location_name = 1; + * * @return The locationName. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getLocationName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationName_ = s; return s; } } /** + * + * *
    * Location impacted by the event. Example: `"us-central1"`
    * 
* * string location_name = 1; + * * @return The bytes for locationName. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationNameBytes() { + public com.google.protobuf.ByteString getLocationNameBytes() { java.lang.Object ref = locationName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationName_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getLocationName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,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(locationName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, locationName_); } @@ -128,15 +151,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.cloud.servicehealth.v1.Location)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.Location other = (com.google.cloud.servicehealth.v1.Location) obj; + com.google.cloud.servicehealth.v1.Location other = + (com.google.cloud.servicehealth.v1.Location) obj; - if (!getLocationName() - .equals(other.getLocationName())) return false; + if (!getLocationName().equals(other.getLocationName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,132 +178,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.Location parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.Location parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Location parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.Location parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 locations impacted by the event.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Location} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.Location) com.google.cloud.servicehealth.v1.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Location.class, com.google.cloud.servicehealth.v1.Location.Builder.class); + com.google.cloud.servicehealth.v1.Location.class, + com.google.cloud.servicehealth.v1.Location.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.Location.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(); @@ -290,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Location_descriptor; } @java.lang.Override @@ -311,8 +338,11 @@ public com.google.cloud.servicehealth.v1.Location build() { @java.lang.Override public com.google.cloud.servicehealth.v1.Location buildPartial() { - com.google.cloud.servicehealth.v1.Location result = new com.google.cloud.servicehealth.v1.Location(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.Location result = + new com.google.cloud.servicehealth.v1.Location(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,38 +358,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Location 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.cloud.servicehealth.v1.Location) { - return mergeFrom((com.google.cloud.servicehealth.v1.Location)other); + return mergeFrom((com.google.cloud.servicehealth.v1.Location) other); } else { super.mergeFrom(other); return this; @@ -399,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - locationName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + locationName_ = 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) { @@ -419,22 +452,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object locationName_ = ""; /** + * + * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; + * * @return The locationName. */ public java.lang.String getLocationName() { java.lang.Object ref = locationName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationName_ = s; return s; @@ -443,20 +479,21 @@ public java.lang.String getLocationName() { } } /** + * + * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; + * * @return The bytes for locationName. */ - public com.google.protobuf.ByteString - getLocationNameBytes() { + public com.google.protobuf.ByteString getLocationNameBytes() { java.lang.Object ref = locationName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationName_ = b; return b; } else { @@ -464,28 +501,35 @@ public java.lang.String getLocationName() { } } /** + * + * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; + * * @param value The locationName to set. * @return This builder for chaining. */ - public Builder setLocationName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } locationName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; + * * @return This builder for chaining. */ public Builder clearLocationName() { @@ -495,26 +539,30 @@ public Builder clearLocationName() { return this; } /** + * + * *
      * Location impacted by the event. Example: `"us-central1"`
      * 
* * string location_name = 1; + * * @param value The bytes for locationName to set. * @return This builder for chaining. */ - public Builder setLocationNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); locationName_ = 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); } @@ -524,12 +572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.Location) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.Location) private static final com.google.cloud.servicehealth.v1.Location DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.Location(); } @@ -538,27 +586,27 @@ public static com.google.cloud.servicehealth.v1.Location getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -573,6 +621,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java similarity index 50% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java index 2132fd72d438..a59dd1b071b0 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface LocationOrBuilder extends +public interface LocationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.Location) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Location impacted by the event. Example: `"us-central1"`
    * 
* * string location_name = 1; + * * @return The locationName. */ java.lang.String getLocationName(); /** + * + * *
    * Location impacted by the event. Example: `"us-central1"`
    * 
* * string location_name = 1; + * * @return The bytes for locationName. */ - com.google.protobuf.ByteString - getLocationNameBytes(); + com.google.protobuf.ByteString getLocationNameBytes(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java similarity index 66% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java index c30b8f8af3a0..b58bb754136d 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEvent.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,6 +20,8 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * Represents service health events that may affect Google Cloud products used
  * across the organization. It is a read-only view and does not allow any
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.servicehealth.v1.OrganizationEvent}
  */
-public final class OrganizationEvent extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OrganizationEvent extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.OrganizationEvent)
     OrganizationEventOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OrganizationEvent.newBuilder() to construct.
   private OrganizationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private OrganizationEvent() {
     name_ = "";
     title_ = "";
@@ -37,25 +55,28 @@ private OrganizationEvent() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OrganizationEvent();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.servicehealth.v1.EventResourcesProto
+        .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable
+    return com.google.cloud.servicehealth.v1.EventResourcesProto
+        .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.servicehealth.v1.OrganizationEvent.class, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder.class);
+            com.google.cloud.servicehealth.v1.OrganizationEvent.class,
+            com.google.cloud.servicehealth.v1.OrganizationEvent.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The category of the event. This enum lists all possible categories of
    * event.
@@ -63,9 +84,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEvent.EventCategory}
    */
-  public enum EventCategory
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum EventCategory implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified category.
      * 
@@ -74,6 +96,8 @@ public enum EventCategory */ EVENT_CATEGORY_UNSPECIFIED(0), /** + * + * *
      * Event category for service outage or degradation.
      * 
@@ -85,6 +109,8 @@ public enum EventCategory ; /** + * + * *
      * Unspecified category.
      * 
@@ -93,6 +119,8 @@ public enum EventCategory */ public static final int EVENT_CATEGORY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Event category for service outage or degradation.
      * 
@@ -101,7 +129,6 @@ public enum EventCategory */ public static final int INCIDENT_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -126,48 +153,49 @@ public static EventCategory valueOf(int value) { */ public static EventCategory forNumber(int value) { switch (value) { - case 0: return EVENT_CATEGORY_UNSPECIFIED; - case 2: return INCIDENT; - default: return null; + case 0: + return EVENT_CATEGORY_UNSPECIFIED; + case 2: + return INCIDENT; + 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< - EventCategory> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventCategory findValueByNumber(int number) { - return EventCategory.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 EventCategory findValueByNumber(int number) { + return EventCategory.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.cloud.servicehealth.v1.OrganizationEvent.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor() + .getEnumTypes() + .get(0); } private static final EventCategory[] VALUES = values(); - public static EventCategory valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventCategory 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; @@ -185,6 +213,8 @@ private EventCategory(int value) { } /** + * + * *
    * The detailed category of an event. Contains all possible states for all
    * event categories.
@@ -192,9 +222,10 @@ private EventCategory(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory}
    */
-  public enum DetailedCategory
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum DetailedCategory implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified detailed category.
      * 
@@ -203,6 +234,8 @@ public enum DetailedCategory */ DETAILED_CATEGORY_UNSPECIFIED(0), /** + * + * *
      * Indicates an event with category INCIDENT has a confirmed impact to at
      * least one Google Cloud product.
@@ -212,6 +245,8 @@ public enum DetailedCategory
      */
     CONFIRMED_INCIDENT(1),
     /**
+     *
+     *
      * 
      * Indicates an event with category INCIDENT is under investigation to
      * determine if it has a confirmed impact on any Google Cloud products.
@@ -224,6 +259,8 @@ public enum DetailedCategory
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified detailed category.
      * 
@@ -232,6 +269,8 @@ public enum DetailedCategory */ public static final int DETAILED_CATEGORY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates an event with category INCIDENT has a confirmed impact to at
      * least one Google Cloud product.
@@ -241,6 +280,8 @@ public enum DetailedCategory
      */
     public static final int CONFIRMED_INCIDENT_VALUE = 1;
     /**
+     *
+     *
      * 
      * Indicates an event with category INCIDENT is under investigation to
      * determine if it has a confirmed impact on any Google Cloud products.
@@ -250,7 +291,6 @@ public enum DetailedCategory
      */
     public static final int EMERGING_INCIDENT_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -275,40 +315,45 @@ public static DetailedCategory valueOf(int value) {
      */
     public static DetailedCategory forNumber(int value) {
       switch (value) {
-        case 0: return DETAILED_CATEGORY_UNSPECIFIED;
-        case 1: return CONFIRMED_INCIDENT;
-        case 2: return EMERGING_INCIDENT;
-        default: return null;
+        case 0:
+          return DETAILED_CATEGORY_UNSPECIFIED;
+        case 1:
+          return CONFIRMED_INCIDENT;
+        case 2:
+          return EMERGING_INCIDENT;
+        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<
-        DetailedCategory> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public DetailedCategory findValueByNumber(int number) {
-              return DetailedCategory.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 DetailedCategory findValueByNumber(int number) {
+                return DetailedCategory.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.cloud.servicehealth.v1.OrganizationEvent.getDescriptor().getEnumTypes().get(1);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor()
+          .getEnumTypes()
+          .get(1);
     }
 
     private static final DetailedCategory[] VALUES = values();
@@ -316,8 +361,7 @@ public DetailedCategory findValueByNumber(int number) {
     public static DetailedCategory 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;
@@ -335,6 +379,8 @@ private DetailedCategory(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The state of the organization event. This enum lists all possible states of
    * event.
@@ -342,9 +388,10 @@ private DetailedCategory(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEvent.State}
    */
-  public enum State
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified state.
      * 
@@ -353,6 +400,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Event is actively affecting a Google Cloud product and will continue to
      * receive updates.
@@ -362,6 +411,8 @@ public enum State
      */
     ACTIVE(1),
     /**
+     *
+     *
      * 
      * Event is no longer affecting the Google Cloud product or has been merged
      * with another event.
@@ -374,6 +425,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified state.
      * 
@@ -382,6 +435,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Event is actively affecting a Google Cloud product and will continue to
      * receive updates.
@@ -391,6 +446,8 @@ public enum State
      */
     public static final int ACTIVE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Event is no longer affecting the Google Cloud product or has been merged
      * with another event.
@@ -400,7 +457,6 @@ public enum State
      */
     public static final int CLOSED_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -425,49 +481,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return CLOSED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return CLOSED;
+        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() {
-      return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor().getEnumTypes().get(2);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor()
+          .getEnumTypes()
+          .get(2);
     }
 
     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;
@@ -485,6 +543,8 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The detailed state of the incident. This enum lists all possible detailed
    * states of an incident.
@@ -492,9 +552,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEvent.DetailedState}
    */
-  public enum DetailedState
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum DetailedState implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified detail state.
      * 
@@ -503,6 +564,8 @@ public enum DetailedState */ DETAILED_STATE_UNSPECIFIED(0), /** + * + * *
      * Google engineers are actively investigating the incident to determine the
      * impact.
@@ -512,6 +575,8 @@ public enum DetailedState
      */
     EMERGING(1),
     /**
+     *
+     *
      * 
      * The incident is confirmed and impacting at least one Google Cloud
      * product. Ongoing status updates will be provided until it is resolved.
@@ -521,6 +586,8 @@ public enum DetailedState
      */
     CONFIRMED(2),
     /**
+     *
+     *
      * 
      * The incident is no longer affecting any Google Cloud product, and there
      * will be no further updates.
@@ -530,6 +597,8 @@ public enum DetailedState
      */
     RESOLVED(3),
     /**
+     *
+     *
      * 
      * The incident was merged into a parent event. All further updates will be
      * published to the parent only. The `parent_event` contains the name of the
@@ -540,6 +609,8 @@ public enum DetailedState
      */
     MERGED(4),
     /**
+     *
+     *
      * 
      * The incident was automatically closed because of the following reasons:
      *
@@ -554,6 +625,8 @@ public enum DetailedState
      */
     AUTO_CLOSED(9),
     /**
+     *
+     *
      * 
      * Upon investigation, Google engineers concluded that the incident is not
      * affecting a Google Cloud product. This state can change if the incident
@@ -567,6 +640,8 @@ public enum DetailedState
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified detail state.
      * 
@@ -575,6 +650,8 @@ public enum DetailedState */ public static final int DETAILED_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Google engineers are actively investigating the incident to determine the
      * impact.
@@ -584,6 +661,8 @@ public enum DetailedState
      */
     public static final int EMERGING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The incident is confirmed and impacting at least one Google Cloud
      * product. Ongoing status updates will be provided until it is resolved.
@@ -593,6 +672,8 @@ public enum DetailedState
      */
     public static final int CONFIRMED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The incident is no longer affecting any Google Cloud product, and there
      * will be no further updates.
@@ -602,6 +683,8 @@ public enum DetailedState
      */
     public static final int RESOLVED_VALUE = 3;
     /**
+     *
+     *
      * 
      * The incident was merged into a parent event. All further updates will be
      * published to the parent only. The `parent_event` contains the name of the
@@ -612,6 +695,8 @@ public enum DetailedState
      */
     public static final int MERGED_VALUE = 4;
     /**
+     *
+     *
      * 
      * The incident was automatically closed because of the following reasons:
      *
@@ -626,6 +711,8 @@ public enum DetailedState
      */
     public static final int AUTO_CLOSED_VALUE = 9;
     /**
+     *
+     *
      * 
      * Upon investigation, Google engineers concluded that the incident is not
      * affecting a Google Cloud product. This state can change if the incident
@@ -636,7 +723,6 @@ public enum DetailedState
      */
     public static final int FALSE_POSITIVE_VALUE = 10;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -661,53 +747,59 @@ public static DetailedState valueOf(int value) {
      */
     public static DetailedState forNumber(int value) {
       switch (value) {
-        case 0: return DETAILED_STATE_UNSPECIFIED;
-        case 1: return EMERGING;
-        case 2: return CONFIRMED;
-        case 3: return RESOLVED;
-        case 4: return MERGED;
-        case 9: return AUTO_CLOSED;
-        case 10: return FALSE_POSITIVE;
-        default: return null;
+        case 0:
+          return DETAILED_STATE_UNSPECIFIED;
+        case 1:
+          return EMERGING;
+        case 2:
+          return CONFIRMED;
+        case 3:
+          return RESOLVED;
+        case 4:
+          return MERGED;
+        case 9:
+          return AUTO_CLOSED;
+        case 10:
+          return FALSE_POSITIVE;
+        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<
-        DetailedState> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public DetailedState findValueByNumber(int number) {
-              return DetailedState.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 DetailedState findValueByNumber(int number) {
+            return DetailedState.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.cloud.servicehealth.v1.OrganizationEvent.getDescriptor().getEnumTypes().get(3);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.servicehealth.v1.OrganizationEvent.getDescriptor()
+          .getEnumTypes()
+          .get(3);
     }
 
     private static final DetailedState[] VALUES = values();
 
-    public static DetailedState valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static DetailedState 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;
@@ -726,9 +818,12 @@ private DetailedState(int value) {
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including organization ID and location using the form
@@ -740,7 +835,10 @@ private DetailedState(int value) {
    * `event_id` - Organization event ID to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The name. */ @java.lang.Override @@ -749,14 +847,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. Identifier. Name of the event. Unique name of the event in
    * this scope including organization ID and location using the form
@@ -768,17 +867,18 @@ public java.lang.String getName() {
    * `event_id` - Organization event ID to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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 { @@ -787,14 +887,18 @@ public java.lang.String getName() { } public static final int TITLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** + * + * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The title. */ @java.lang.Override @@ -803,29 +907,29 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** + * + * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -834,14 +938,18 @@ public java.lang.String getTitle() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ @java.lang.Override @@ -850,29 +958,29 @@ 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; } } /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -883,166 +991,249 @@ public java.lang.String getDescription() { public static final int CATEGORY_FIELD_NUMBER = 4; private int category_ = 0; /** + * + * *
    * Output only. The category of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for category. */ - @java.lang.Override public int getCategoryValue() { + @java.lang.Override + public int getCategoryValue() { return category_; } /** + * + * *
    * Output only. The category of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The category. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory getCategory() { - com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory result = com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.forNumber(category_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory getCategory() { + com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory result = + com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.forNumber(category_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.UNRECOGNIZED + : result; } public static final int DETAILED_CATEGORY_FIELD_NUMBER = 17; private int detailedCategory_ = 0; /** + * + * *
    * Output only. The detailed category of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedCategory. */ - @java.lang.Override public int getDetailedCategoryValue() { + @java.lang.Override + public int getDetailedCategoryValue() { return detailedCategory_; } /** + * + * *
    * Output only. The detailed category of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedCategory. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory getDetailedCategory() { - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory result = com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.forNumber(detailedCategory_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory + getDetailedCategory() { + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory result = + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.forNumber( + detailedCategory_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.UNRECOGNIZED + : result; } public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** + * + * *
    * Output only. The current state of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.State getState() { - com.google.cloud.servicehealth.v1.OrganizationEvent.State result = com.google.cloud.servicehealth.v1.OrganizationEvent.State.forNumber(state_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.servicehealth.v1.OrganizationEvent.State getState() { + com.google.cloud.servicehealth.v1.OrganizationEvent.State result = + com.google.cloud.servicehealth.v1.OrganizationEvent.State.forNumber(state_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEvent.State.UNRECOGNIZED + : result; } public static final int DETAILED_STATE_FIELD_NUMBER = 16; private int detailedState_ = 0; /** + * + * *
    * Output only. The current detailed state of the incident.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedState. */ - @java.lang.Override public int getDetailedStateValue() { + @java.lang.Override + public int getDetailedStateValue() { return detailedState_; } /** + * + * *
    * Output only. The current detailed state of the incident.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedState. */ - @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState getDetailedState() { - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState result = com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.forNumber(detailedState_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState getDetailedState() { + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState result = + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.forNumber(detailedState_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.UNRECOGNIZED + : result; } public static final int EVENT_IMPACTS_FIELD_NUMBER = 15; + @SuppressWarnings("serial") private java.util.List eventImpacts_; /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getEventImpactsList() { return eventImpacts_; } /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getEventImpactsOrBuilderList() { return eventImpacts_; } /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getEventImpactsCount() { return eventImpacts_.size(); } /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) { return eventImpacts_.get(index); } /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( @@ -1051,75 +1242,98 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB } public static final int UPDATES_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private java.util.List updates_; /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getUpdatesList() { return updates_; } /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getUpdatesOrBuilderList() { return updates_; } /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getUpdatesCount() { return updates_.size(); } /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { return updates_.get(index); } /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index) { return updates_.get(index); } public static final int PARENT_EVENT_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object parentEvent_ = ""; /** + * + * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -1127,6 +1341,7 @@ public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilde
    * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parentEvent. */ @java.lang.Override @@ -1135,14 +1350,15 @@ public java.lang.String getParentEvent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentEvent_ = s; return s; } } /** + * + * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -1150,16 +1366,15 @@ public java.lang.String getParentEvent() {
    * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for parentEvent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentEventBytes() { + public com.google.protobuf.ByteString getParentEventBytes() { java.lang.Object ref = parentEvent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentEvent_ = b; return b; } else { @@ -1170,11 +1385,15 @@ public java.lang.String getParentEvent() { public static final int UPDATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1182,11 +1401,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1194,11 +1417,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1208,11 +1434,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -1220,11 +1450,15 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -1232,11 +1466,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -1246,11 +1483,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1258,11 +1499,15 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -1270,11 +1515,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1284,12 +1532,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int NEXT_UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp nextUpdateTime_; /** + * + * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the nextUpdateTime field is set. */ @java.lang.Override @@ -1297,32 +1550,46 @@ public boolean hasNextUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The nextUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextUpdateTime() { - return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; + return nextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextUpdateTime_; } /** + * + * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder() { - return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; + return nextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextUpdateTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1334,8 +1601,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_); } @@ -1345,10 +1611,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } - if (category_ != com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.EVENT_CATEGORY_UNSPECIFIED.getNumber()) { + if (category_ + != com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory + .EVENT_CATEGORY_UNSPECIFIED + .getNumber()) { output.writeEnum(4, category_); } - if (state_ != com.google.cloud.servicehealth.v1.OrganizationEvent.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.servicehealth.v1.OrganizationEvent.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, state_); } for (int i = 0; i < updates_.size(); i++) { @@ -1372,10 +1643,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < eventImpacts_.size(); i++) { output.writeMessage(15, eventImpacts_.get(i)); } - if (detailedState_ != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.DETAILED_STATE_UNSPECIFIED.getNumber()) { + if (detailedState_ + != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState + .DETAILED_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(16, detailedState_); } - if (detailedCategory_ != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED.getNumber()) { + if (detailedCategory_ + != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory + .DETAILED_CATEGORY_UNSPECIFIED + .getNumber()) { output.writeEnum(17, detailedCategory_); } getUnknownFields().writeTo(output); @@ -1396,48 +1673,49 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } - if (category_ != com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.EVENT_CATEGORY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, category_); + if (category_ + != com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory + .EVENT_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, category_); } - if (state_ != com.google.cloud.servicehealth.v1.OrganizationEvent.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + if (state_ + != com.google.cloud.servicehealth.v1.OrganizationEvent.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } for (int i = 0; i < updates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, updates_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, updates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEvent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, parentEvent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getStartTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getEndTime()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getNextUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNextUpdateTime()); } for (int i = 0; i < eventImpacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, eventImpacts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, eventImpacts_.get(i)); } - if (detailedState_ != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.DETAILED_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(16, detailedState_); + if (detailedState_ + != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState + .DETAILED_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, detailedState_); } - if (detailedCategory_ != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.DETAILED_CATEGORY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, detailedCategory_); + if (detailedCategory_ + != com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory + .DETAILED_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, detailedCategory_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1447,48 +1725,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.cloud.servicehealth.v1.OrganizationEvent)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.OrganizationEvent other = (com.google.cloud.servicehealth.v1.OrganizationEvent) obj; + com.google.cloud.servicehealth.v1.OrganizationEvent other = + (com.google.cloud.servicehealth.v1.OrganizationEvent) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (category_ != other.category_) return false; if (detailedCategory_ != other.detailedCategory_) return false; if (state_ != other.state_) return false; if (detailedState_ != other.detailedState_) return false; - if (!getEventImpactsList() - .equals(other.getEventImpactsList())) return false; - if (!getUpdatesList() - .equals(other.getUpdatesList())) return false; - if (!getParentEvent() - .equals(other.getParentEvent())) return false; + if (!getEventImpactsList().equals(other.getEventImpactsList())) return false; + if (!getUpdatesList().equals(other.getUpdatesList())) return false; + if (!getParentEvent().equals(other.getParentEvent())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) 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 (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (hasNextUpdateTime() != other.hasNextUpdateTime()) return false; if (hasNextUpdateTime()) { - if (!getNextUpdateTime() - .equals(other.getNextUpdateTime())) return false; + if (!getNextUpdateTime().equals(other.getNextUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1547,98 +1816,103 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.OrganizationEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.OrganizationEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.OrganizationEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.OrganizationEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 service health events that may affect Google Cloud products used
    * across the organization. It is a read-only view and does not allow any
@@ -1647,21 +1921,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.servicehealth.v1.OrganizationEvent}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.OrganizationEvent)
       com.google.cloud.servicehealth.v1.OrganizationEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto
+          .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable
+      return com.google.cloud.servicehealth.v1.EventResourcesProto
+          .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.servicehealth.v1.OrganizationEvent.class, com.google.cloud.servicehealth.v1.OrganizationEvent.Builder.class);
+              com.google.cloud.servicehealth.v1.OrganizationEvent.class,
+              com.google.cloud.servicehealth.v1.OrganizationEvent.Builder.class);
     }
 
     // Construct using com.google.cloud.servicehealth.v1.OrganizationEvent.newBuilder()
@@ -1669,14 +1945,13 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getEventImpactsFieldBuilder();
         getUpdatesFieldBuilder();
         getUpdateTimeFieldBuilder();
@@ -1685,6 +1960,7 @@ private void maybeForceBuilderInitialization() {
         getNextUpdateTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1735,9 +2011,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto
+          .internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor;
     }
 
     @java.lang.Override
@@ -1756,14 +2032,18 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent build() {
 
     @java.lang.Override
     public com.google.cloud.servicehealth.v1.OrganizationEvent buildPartial() {
-      com.google.cloud.servicehealth.v1.OrganizationEvent result = new com.google.cloud.servicehealth.v1.OrganizationEvent(this);
+      com.google.cloud.servicehealth.v1.OrganizationEvent result =
+          new com.google.cloud.servicehealth.v1.OrganizationEvent(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.servicehealth.v1.OrganizationEvent result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.servicehealth.v1.OrganizationEvent result) {
       if (eventImpactsBuilder_ == null) {
         if (((bitField0_ & 0x00000080) != 0)) {
           eventImpacts_ = java.util.Collections.unmodifiableList(eventImpacts_);
@@ -1812,27 +2092,20 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.OrganizationEvent r
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
         to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.nextUpdateTime_ = nextUpdateTimeBuilder_ == null
-            ? nextUpdateTime_
-            : nextUpdateTimeBuilder_.build();
+        result.nextUpdateTime_ =
+            nextUpdateTimeBuilder_ == null ? nextUpdateTime_ : nextUpdateTimeBuilder_.build();
         to_bitField0_ |= 0x00000008;
       }
       result.bitField0_ |= to_bitField0_;
@@ -1842,38 +2115,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.OrganizationEvent 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.cloud.servicehealth.v1.OrganizationEvent) {
-        return mergeFrom((com.google.cloud.servicehealth.v1.OrganizationEvent)other);
+        return mergeFrom((com.google.cloud.servicehealth.v1.OrganizationEvent) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1881,7 +2155,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.servicehealth.v1.OrganizationEvent other) {
-      if (other == com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance()) return this;
+      if (other == com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1927,9 +2202,10 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.OrganizationEvent oth
             eventImpactsBuilder_ = null;
             eventImpacts_ = other.eventImpacts_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            eventImpactsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEventImpactsFieldBuilder() : null;
+            eventImpactsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEventImpactsFieldBuilder()
+                    : null;
           } else {
             eventImpactsBuilder_.addAllMessages(other.eventImpacts_);
           }
@@ -1953,9 +2229,10 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.OrganizationEvent oth
             updatesBuilder_ = null;
             updates_ = other.updates_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            updatesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getUpdatesFieldBuilder() : null;
+            updatesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getUpdatesFieldBuilder()
+                    : null;
           } else {
             updatesBuilder_.addAllMessages(other.updates_);
           }
@@ -2004,106 +2281,111 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              title_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              category_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 40
-            case 66: {
-              com.google.cloud.servicehealth.v1.EventUpdate m =
-                  input.readMessage(
-                      com.google.cloud.servicehealth.v1.EventUpdate.parser(),
-                      extensionRegistry);
-              if (updatesBuilder_ == null) {
-                ensureUpdatesIsMutable();
-                updates_.add(m);
-              } else {
-                updatesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 66
-            case 74: {
-              parentEvent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 90: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getNextUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 114
-            case 122: {
-              com.google.cloud.servicehealth.v1.EventImpact m =
-                  input.readMessage(
-                      com.google.cloud.servicehealth.v1.EventImpact.parser(),
-                      extensionRegistry);
-              if (eventImpactsBuilder_ == null) {
-                ensureEventImpactsIsMutable();
-                eventImpacts_.add(m);
-              } else {
-                eventImpactsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 122
-            case 128: {
-              detailedState_ = input.readEnum();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 128
-            case 136: {
-              detailedCategory_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 136
-            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:
+              {
+                title_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                category_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 40
+            case 66:
+              {
+                com.google.cloud.servicehealth.v1.EventUpdate m =
+                    input.readMessage(
+                        com.google.cloud.servicehealth.v1.EventUpdate.parser(), extensionRegistry);
+                if (updatesBuilder_ == null) {
+                  ensureUpdatesIsMutable();
+                  updates_.add(m);
+                } else {
+                  updatesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 66
+            case 74:
+              {
+                parentEvent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 90:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getNextUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 114
+            case 122:
+              {
+                com.google.cloud.servicehealth.v1.EventImpact m =
+                    input.readMessage(
+                        com.google.cloud.servicehealth.v1.EventImpact.parser(), extensionRegistry);
+                if (eventImpactsBuilder_ == null) {
+                  ensureEventImpactsIsMutable();
+                  eventImpacts_.add(m);
+                } else {
+                  eventImpactsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 122
+            case 128:
+              {
+                detailedState_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 128
+            case 136:
+              {
+                detailedCategory_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 136
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2113,10 +2395,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2128,14 +2413,16 @@ public Builder mergeFrom(
      * `event_id` - Organization event ID to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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; @@ -2144,6 +2431,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2155,16 +2444,17 @@ public java.lang.String getName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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 { @@ -2172,6 +2462,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2183,19 +2475,25 @@ public java.lang.String getName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2207,7 +2505,10 @@ public Builder setName(
      * `event_id` - Organization event ID to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -2217,6 +2518,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Identifier. Name of the event. Unique name of the event in
      * this scope including organization ID and location using the form
@@ -2228,13 +2531,17 @@ public Builder clearName() {
      * `event_id` - Organization event ID to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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; @@ -2244,18 +2551,20 @@ public Builder setNameBytes( private java.lang.Object title_ = ""; /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -2264,20 +2573,21 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -2285,28 +2595,35 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTitle() { @@ -2316,17 +2633,21 @@ public Builder clearTitle() { return this; } /** + * + * *
      * Output only. Brief description for the event.
      * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000002; @@ -2336,18 +2657,20 @@ public Builder setTitleBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2356,20 +2679,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2377,28 +2701,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2408,17 +2739,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Output only. Free-form, human-readable description.
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000004; @@ -2428,22 +2763,33 @@ public Builder setDescriptionBytes( private int category_ = 0; /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for category. */ - @java.lang.Override public int getCategoryValue() { + @java.lang.Override + public int getCategoryValue() { return category_; } /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for category to set. * @return This builder for chaining. */ @@ -2454,28 +2800,42 @@ public Builder setCategoryValue(int value) { return this; } /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The category. */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory getCategory() { - com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory result = com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.forNumber(category_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.UNRECOGNIZED : result; + com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory result = + com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.forNumber(category_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory(com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory value) { + public Builder setCategory( + com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory value) { if (value == null) { throw new NullPointerException(); } @@ -2485,11 +2845,16 @@ public Builder setCategory(com.google.cloud.servicehealth.v1.OrganizationEvent.E return this; } /** + * + * *
      * Output only. The category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearCategory() { @@ -2501,22 +2866,33 @@ public Builder clearCategory() { private int detailedCategory_ = 0; /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedCategory. */ - @java.lang.Override public int getDetailedCategoryValue() { + @java.lang.Override + public int getDetailedCategoryValue() { return detailedCategory_; } /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for detailedCategory to set. * @return This builder for chaining. */ @@ -2527,28 +2903,44 @@ public Builder setDetailedCategoryValue(int value) { return this; } /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedCategory. */ @java.lang.Override - public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory getDetailedCategory() { - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory result = com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.forNumber(detailedCategory_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.UNRECOGNIZED : result; + public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory + getDetailedCategory() { + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory result = + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.forNumber( + detailedCategory_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The detailedCategory to set. * @return This builder for chaining. */ - public Builder setDetailedCategory(com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory value) { + public Builder setDetailedCategory( + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory value) { if (value == null) { throw new NullPointerException(); } @@ -2558,11 +2950,16 @@ public Builder setDetailedCategory(com.google.cloud.servicehealth.v1.Organizatio return this; } /** + * + * *
      * Output only. The detailed category of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDetailedCategory() { @@ -2574,22 +2971,33 @@ public Builder clearDetailedCategory() { private int state_ = 0; /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2600,24 +3008,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.State getState() { - com.google.cloud.servicehealth.v1.OrganizationEvent.State result = com.google.cloud.servicehealth.v1.OrganizationEvent.State.forNumber(state_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.State.UNRECOGNIZED : result; + com.google.cloud.servicehealth.v1.OrganizationEvent.State result = + com.google.cloud.servicehealth.v1.OrganizationEvent.State.forNumber(state_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEvent.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2631,11 +3052,16 @@ public Builder setState(com.google.cloud.servicehealth.v1.OrganizationEvent.Stat return this; } /** + * + * *
      * Output only. The current state of the event.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2647,22 +3073,33 @@ public Builder clearState() { private int detailedState_ = 0; /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedState. */ - @java.lang.Override public int getDetailedStateValue() { + @java.lang.Override + public int getDetailedStateValue() { return detailedState_; } /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for detailedState to set. * @return This builder for chaining. */ @@ -2673,28 +3110,43 @@ public Builder setDetailedStateValue(int value) { return this; } /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedState. */ @java.lang.Override public com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState getDetailedState() { - com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState result = com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.forNumber(detailedState_); - return result == null ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.UNRECOGNIZED : result; + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState result = + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.forNumber( + detailedState_); + return result == null + ? com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The detailedState to set. * @return This builder for chaining. */ - public Builder setDetailedState(com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState value) { + public Builder setDetailedState( + com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState value) { if (value == null) { throw new NullPointerException(); } @@ -2704,11 +3156,16 @@ public Builder setDetailedState(com.google.cloud.servicehealth.v1.OrganizationEv return this; } /** + * + * *
      * Output only. The current detailed state of the incident.
      * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDetailedState() { @@ -2719,24 +3176,33 @@ public Builder clearDetailedState() { } private java.util.List eventImpacts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEventImpactsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - eventImpacts_ = new java.util.ArrayList(eventImpacts_); + eventImpacts_ = + new java.util.ArrayList(eventImpacts_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder> eventImpactsBuilder_; + com.google.cloud.servicehealth.v1.EventImpact, + com.google.cloud.servicehealth.v1.EventImpact.Builder, + com.google.cloud.servicehealth.v1.EventImpactOrBuilder> + eventImpactsBuilder_; /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getEventImpactsList() { if (eventImpactsBuilder_ == null) { @@ -2746,12 +3212,16 @@ public java.util.List getEventImp } } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getEventImpactsCount() { if (eventImpactsBuilder_ == null) { @@ -2761,12 +3231,16 @@ public int getEventImpactsCount() { } } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) { if (eventImpactsBuilder_ == null) { @@ -2776,15 +3250,18 @@ public com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index) } } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEventImpacts( - int index, com.google.cloud.servicehealth.v1.EventImpact value) { + public Builder setEventImpacts(int index, com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2798,12 +3275,16 @@ public Builder setEventImpacts( return this; } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEventImpacts( int index, com.google.cloud.servicehealth.v1.EventImpact.Builder builderForValue) { @@ -2817,12 +3298,16 @@ public Builder setEventImpacts( return this; } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addEventImpacts(com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { @@ -2838,15 +3323,18 @@ public Builder addEventImpacts(com.google.cloud.servicehealth.v1.EventImpact val return this; } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addEventImpacts( - int index, com.google.cloud.servicehealth.v1.EventImpact value) { + public Builder addEventImpacts(int index, com.google.cloud.servicehealth.v1.EventImpact value) { if (eventImpactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2860,12 +3348,16 @@ public Builder addEventImpacts( return this; } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addEventImpacts( com.google.cloud.servicehealth.v1.EventImpact.Builder builderForValue) { @@ -2879,12 +3371,16 @@ public Builder addEventImpacts( return this; } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addEventImpacts( int index, com.google.cloud.servicehealth.v1.EventImpact.Builder builderForValue) { @@ -2898,19 +3394,22 @@ public Builder addEventImpacts( return this; } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllEventImpacts( java.lang.Iterable values) { if (eventImpactsBuilder_ == null) { ensureEventImpactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventImpacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventImpacts_); onChanged(); } else { eventImpactsBuilder_.addAllMessages(values); @@ -2918,12 +3417,16 @@ public Builder addAllEventImpacts( return this; } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEventImpacts() { if (eventImpactsBuilder_ == null) { @@ -2936,12 +3439,16 @@ public Builder clearEventImpacts() { return this; } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeEventImpacts(int index) { if (eventImpactsBuilder_ == null) { @@ -2954,42 +3461,54 @@ public Builder removeEventImpacts(int index) { return this; } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventImpact.Builder getEventImpactsBuilder(int index) { return getEventImpactsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( int index) { if (eventImpactsBuilder_ == null) { - return eventImpacts_.get(index); } else { + return eventImpacts_.get(index); + } else { return eventImpactsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getEventImpactsOrBuilderList() { + public java.util.List + getEventImpactsOrBuilderList() { if (eventImpactsBuilder_ != null) { return eventImpactsBuilder_.getMessageOrBuilderList(); } else { @@ -2997,76 +3516,98 @@ public com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrB } } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder() { - return getEventImpactsFieldBuilder().addBuilder( - com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); + return getEventImpactsFieldBuilder() + .addBuilder(com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder( - int index) { - return getEventImpactsFieldBuilder().addBuilder( - index, com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.EventImpact.Builder addEventImpactsBuilder(int index) { + return getEventImpactsFieldBuilder() + .addBuilder(index, com.google.cloud.servicehealth.v1.EventImpact.getDefaultInstance()); } /** + * + * *
      * Output only. Represents the Google Cloud products and locations impacted by
      * the event.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getEventImpactsBuilderList() { + public java.util.List + getEventImpactsBuilderList() { return getEventImpactsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder> + com.google.cloud.servicehealth.v1.EventImpact, + com.google.cloud.servicehealth.v1.EventImpact.Builder, + com.google.cloud.servicehealth.v1.EventImpactOrBuilder> getEventImpactsFieldBuilder() { if (eventImpactsBuilder_ == null) { - eventImpactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventImpact, com.google.cloud.servicehealth.v1.EventImpact.Builder, com.google.cloud.servicehealth.v1.EventImpactOrBuilder>( - eventImpacts_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); + eventImpactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.EventImpact, + com.google.cloud.servicehealth.v1.EventImpact.Builder, + com.google.cloud.servicehealth.v1.EventImpactOrBuilder>( + eventImpacts_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); eventImpacts_ = null; } return eventImpactsBuilder_; } private java.util.List updates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureUpdatesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { updates_ = new java.util.ArrayList(updates_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> updatesBuilder_; + com.google.cloud.servicehealth.v1.EventUpdate, + com.google.cloud.servicehealth.v1.EventUpdate.Builder, + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> + updatesBuilder_; /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getUpdatesList() { if (updatesBuilder_ == null) { @@ -3076,12 +3617,16 @@ public java.util.List getUpdatesL } } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getUpdatesCount() { if (updatesBuilder_ == null) { @@ -3091,12 +3636,16 @@ public int getUpdatesCount() { } } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { if (updatesBuilder_ == null) { @@ -3106,15 +3655,18 @@ public com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index) { } } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdates( - int index, com.google.cloud.servicehealth.v1.EventUpdate value) { + public Builder setUpdates(int index, com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3128,12 +3680,16 @@ public Builder setUpdates( return this; } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdates( int index, com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3147,12 +3703,16 @@ public Builder setUpdates( return this; } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addUpdates(com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { @@ -3168,15 +3728,18 @@ public Builder addUpdates(com.google.cloud.servicehealth.v1.EventUpdate value) { return this; } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addUpdates( - int index, com.google.cloud.servicehealth.v1.EventUpdate value) { + public Builder addUpdates(int index, com.google.cloud.servicehealth.v1.EventUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3190,12 +3753,16 @@ public Builder addUpdates( return this; } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addUpdates( com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3209,12 +3776,16 @@ public Builder addUpdates( return this; } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addUpdates( int index, com.google.cloud.servicehealth.v1.EventUpdate.Builder builderForValue) { @@ -3228,19 +3799,22 @@ public Builder addUpdates( return this; } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllUpdates( java.lang.Iterable values) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, updates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, updates_); onChanged(); } else { updatesBuilder_.addAllMessages(values); @@ -3248,12 +3822,16 @@ public Builder addAllUpdates( return this; } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdates() { if (updatesBuilder_ == null) { @@ -3266,12 +3844,16 @@ public Builder clearUpdates() { return this; } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeUpdates(int index) { if (updatesBuilder_ == null) { @@ -3284,42 +3866,53 @@ public Builder removeUpdates(int index) { return this; } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.EventUpdate.Builder getUpdatesBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventUpdate.Builder getUpdatesBuilder(int index) { return getUpdatesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( - int index) { + public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index) { if (updatesBuilder_ == null) { - return updates_.get(index); } else { + return updates_.get(index); + } else { return updatesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getUpdatesOrBuilderList() { + public java.util.List + getUpdatesOrBuilderList() { if (updatesBuilder_ != null) { return updatesBuilder_.getMessageOrBuilderList(); } else { @@ -3327,52 +3920,66 @@ public com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilde } } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder() { - return getUpdatesFieldBuilder().addBuilder( - com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); + return getUpdatesFieldBuilder() + .addBuilder(com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder( - int index) { - return getUpdatesFieldBuilder().addBuilder( - index, com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); + public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(int index) { + return getUpdatesFieldBuilder() + .addBuilder(index, com.google.cloud.servicehealth.v1.EventUpdate.getDefaultInstance()); } /** + * + * *
      * Output only. Incident-only field. Event updates are correspondence from
      * Google.
      * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getUpdatesBuilderList() { + public java.util.List + getUpdatesBuilderList() { return getUpdatesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> + com.google.cloud.servicehealth.v1.EventUpdate, + com.google.cloud.servicehealth.v1.EventUpdate.Builder, + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder> getUpdatesFieldBuilder() { if (updatesBuilder_ == null) { - updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.servicehealth.v1.EventUpdate, com.google.cloud.servicehealth.v1.EventUpdate.Builder, com.google.cloud.servicehealth.v1.EventUpdateOrBuilder>( - updates_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); + updatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.servicehealth.v1.EventUpdate, + com.google.cloud.servicehealth.v1.EventUpdate.Builder, + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder>( + updates_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); updates_ = null; } return updatesBuilder_; @@ -3380,6 +3987,8 @@ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder( private java.lang.Object parentEvent_ = ""; /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3387,13 +3996,13 @@ public com.google.cloud.servicehealth.v1.EventUpdate.Builder addUpdatesBuilder(
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parentEvent. */ public java.lang.String getParentEvent() { java.lang.Object ref = parentEvent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentEvent_ = s; return s; @@ -3402,6 +4011,8 @@ public java.lang.String getParentEvent() { } } /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3409,15 +4020,14 @@ public java.lang.String getParentEvent() {
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for parentEvent. */ - public com.google.protobuf.ByteString - getParentEventBytes() { + public com.google.protobuf.ByteString getParentEventBytes() { java.lang.Object ref = parentEvent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentEvent_ = b; return b; } else { @@ -3425,6 +4035,8 @@ public java.lang.String getParentEvent() { } } /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3432,18 +4044,22 @@ public java.lang.String getParentEvent() {
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The parentEvent to set. * @return This builder for chaining. */ - public Builder setParentEvent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parentEvent_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3451,6 +4067,7 @@ public Builder setParentEvent(
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearParentEvent() { @@ -3460,6 +4077,8 @@ public Builder clearParentEvent() { return this; } /** + * + * *
      * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
      * name of the parent event. All further updates will be published to the
@@ -3467,12 +4086,14 @@ public Builder clearParentEvent() {
      * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for parentEvent to set. * @return This builder for chaining. */ - public Builder setParentEventBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parentEvent_ = value; bitField0_ |= 0x00000200; @@ -3482,39 +4103,58 @@ public Builder setParentEventBytes( private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3530,14 +4170,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3548,17 +4191,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3573,11 +4220,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3590,11 +4241,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000400; @@ -3602,36 +4257,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time the update was posted.
      * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3639,24 +4306,37 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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_; /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -3667,11 +4347,15 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -3687,14 +4371,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 { @@ -3705,17 +4392,21 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -3730,11 +4421,15 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3747,11 +4442,15 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000800; @@ -3759,36 +4458,46 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. The start time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -3796,24 +4505,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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_; /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3824,11 +4544,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3844,14 +4567,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 { @@ -3862,17 +4587,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -3887,11 +4615,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -3904,11 +4635,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00001000; @@ -3916,36 +4650,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. The end time of the event, if applicable.
      * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -3953,42 +4695,61 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp nextUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextUpdateTimeBuilder_; /** + * + * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the nextUpdateTime field is set. */ public boolean hasNextUpdateTime() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The nextUpdateTime. */ public com.google.protobuf.Timestamp getNextUpdateTime() { if (nextUpdateTimeBuilder_ == null) { - return nextUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; + return nextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextUpdateTime_; } else { return nextUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setNextUpdateTime(com.google.protobuf.Timestamp value) { if (nextUpdateTimeBuilder_ == null) { @@ -4004,15 +4765,18 @@ public Builder setNextUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNextUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (nextUpdateTimeBuilder_ == null) { nextUpdateTime_ = builderForValue.build(); } else { @@ -4023,18 +4787,22 @@ public Builder setNextUpdateTime( return this; } /** + * + * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeNextUpdateTime(com.google.protobuf.Timestamp value) { if (nextUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - nextUpdateTime_ != null && - nextUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) + && nextUpdateTime_ != null + && nextUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getNextUpdateTimeBuilder().mergeFrom(value); } else { nextUpdateTime_ = value; @@ -4049,12 +4817,16 @@ public Builder mergeNextUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearNextUpdateTime() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4067,12 +4839,16 @@ public Builder clearNextUpdateTime() { return this; } /** + * + * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getNextUpdateTimeBuilder() { bitField0_ |= 0x00002000; @@ -4080,45 +4856,57 @@ public com.google.protobuf.Timestamp.Builder getNextUpdateTimeBuilder() { return getNextUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder() { if (nextUpdateTimeBuilder_ != null) { return nextUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return nextUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : nextUpdateTime_; + return nextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextUpdateTime_; } } /** + * + * *
      * Output only. Incident-only field. The time when the next update can be
      * expected.
      * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getNextUpdateTimeFieldBuilder() { if (nextUpdateTimeBuilder_ == null) { - nextUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getNextUpdateTime(), - getParentForChildren(), - isClean()); + nextUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextUpdateTime(), getParentForChildren(), isClean()); nextUpdateTime_ = null; } return nextUpdateTimeBuilder_; } + @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); } @@ -4128,12 +4916,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.OrganizationEvent) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.OrganizationEvent) private static final com.google.cloud.servicehealth.v1.OrganizationEvent DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.OrganizationEvent(); } @@ -4142,27 +4930,27 @@ public static com.google.cloud.servicehealth.v1.OrganizationEvent getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 OrganizationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4177,6 +4965,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.OrganizationEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java similarity index 64% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java index 0092f4f8a600..aa319faca925 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface OrganizationEventOrBuilder extends +public interface OrganizationEventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.OrganizationEvent) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including organization ID and location using the form
@@ -20,11 +38,16 @@ public interface OrganizationEventOrBuilder extends
    * `event_id` - Organization event ID to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Identifier. Name of the event. Unique name of the event in
    * this scope including organization ID and location using the form
@@ -36,227 +59,317 @@ public interface OrganizationEventOrBuilder extends
    * `event_id` - Organization event ID to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The title. */ java.lang.String getTitle(); /** + * + * *
    * Output only. Brief description for the event.
    * 
* * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for title. */ - com.google.protobuf.ByteString - getTitleBytes(); + com.google.protobuf.ByteString getTitleBytes(); /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. Free-form, human-readable description.
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The category of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for category. */ int getCategoryValue(); /** + * + * *
    * Output only. The category of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The category. */ com.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory getCategory(); /** + * + * *
    * Output only. The detailed category of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedCategory. */ int getDetailedCategoryValue(); /** + * + * *
    * Output only. The detailed category of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory detailed_category = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedCategory. */ com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory getDetailedCategory(); /** + * + * *
    * Output only. The current state of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the event.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.servicehealth.v1.OrganizationEvent.State getState(); /** + * + * *
    * Output only. The current detailed state of the incident.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for detailedState. */ int getDetailedStateValue(); /** + * + * *
    * Output only. The current detailed state of the incident.
    * 
* - * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.OrganizationEvent.DetailedState detailed_state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The detailedState. */ com.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState getDetailedState(); /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getEventImpactsList(); + java.util.List getEventImpactsList(); /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.servicehealth.v1.EventImpact getEventImpacts(int index); /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getEventImpactsCount(); /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getEventImpactsOrBuilderList(); /** + * + * *
    * Output only. Represents the Google Cloud products and locations impacted by
    * the event.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder( - int index); + com.google.cloud.servicehealth.v1.EventImpactOrBuilder getEventImpactsOrBuilder(int index); /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getUpdatesList(); + java.util.List getUpdatesList(); /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.servicehealth.v1.EventUpdate getUpdates(int index); /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getUpdatesCount(); /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getUpdatesOrBuilderList(); /** + * + * *
    * Output only. Incident-only field. Event updates are correspondence from
    * Google.
    * 
* - * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.servicehealth.v1.EventUpdate updates = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder( - int index); + com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(int index); /** + * + * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -264,10 +377,13 @@ com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(
    * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parentEvent. */ java.lang.String getParentEvent(); /** + * + * *
    * Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
    * name of the parent event. All further updates will be published to the
@@ -275,119 +391,166 @@ com.google.cloud.servicehealth.v1.EventUpdateOrBuilder getUpdatesOrBuilder(
    * 
* * string parent_event = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for parentEvent. */ - com.google.protobuf.ByteString - getParentEventBytes(); + com.google.protobuf.ByteString getParentEventBytes(); /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the update was posted.
    * 
* - * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. The start time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The end time of the event, if applicable.
    * 
* - * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the nextUpdateTime field is set. */ boolean hasNextUpdateTime(); /** + * + * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The nextUpdateTime. */ com.google.protobuf.Timestamp getNextUpdateTime(); /** + * + * *
    * Output only. Incident-only field. The time when the next update can be
    * expected.
    * 
* - * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp next_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getNextUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java similarity index 71% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java index 3d527e68d01a..24fea50be40c 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventView.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,6 +20,8 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * The organization event fields to include in ListOrganizationEvents API
  * response. This enum lists all possible organization event views.
@@ -12,9 +29,10 @@
  *
  * Protobuf enum {@code google.cloud.servicehealth.v1.OrganizationEventView}
  */
-public enum OrganizationEventView
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum OrganizationEventView implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Unspecified event view. Default to `ORGANIZATION_EVENT_VIEW_BASIC`.
    * 
@@ -23,6 +41,8 @@ public enum OrganizationEventView */ ORGANIZATION_EVENT_VIEW_UNSPECIFIED(0), /** + * + * *
    * Includes all organization event fields except `updates`. This view is the
    * default for ListOrganizationEvents API.
@@ -32,6 +52,8 @@ public enum OrganizationEventView
    */
   ORGANIZATION_EVENT_VIEW_BASIC(1),
   /**
+   *
+   *
    * 
    * Includes all organization event fields.
    * 
@@ -43,6 +65,8 @@ public enum OrganizationEventView ; /** + * + * *
    * Unspecified event view. Default to `ORGANIZATION_EVENT_VIEW_BASIC`.
    * 
@@ -51,6 +75,8 @@ public enum OrganizationEventView */ public static final int ORGANIZATION_EVENT_VIEW_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Includes all organization event fields except `updates`. This view is the
    * default for ListOrganizationEvents API.
@@ -60,6 +86,8 @@ public enum OrganizationEventView
    */
   public static final int ORGANIZATION_EVENT_VIEW_BASIC_VALUE = 1;
   /**
+   *
+   *
    * 
    * Includes all organization event fields.
    * 
@@ -68,7 +96,6 @@ public enum OrganizationEventView */ public static final int ORGANIZATION_EVENT_VIEW_FULL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -93,10 +120,14 @@ public static OrganizationEventView valueOf(int value) { */ public static OrganizationEventView forNumber(int value) { switch (value) { - case 0: return ORGANIZATION_EVENT_VIEW_UNSPECIFIED; - case 1: return ORGANIZATION_EVENT_VIEW_BASIC; - case 2: return ORGANIZATION_EVENT_VIEW_FULL; - default: return null; + case 0: + return ORGANIZATION_EVENT_VIEW_UNSPECIFIED; + case 1: + return ORGANIZATION_EVENT_VIEW_BASIC; + case 2: + return ORGANIZATION_EVENT_VIEW_FULL; + default: + return null; } } @@ -104,29 +135,31 @@ public static OrganizationEventView forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - OrganizationEventView> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OrganizationEventView findValueByNumber(int number) { - return OrganizationEventView.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 OrganizationEventView findValueByNumber(int number) { + return OrganizationEventView.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.cloud.servicehealth.v1.EventResourcesProto.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto.getDescriptor() + .getEnumTypes() + .get(1); } private static final OrganizationEventView[] VALUES = values(); @@ -134,8 +167,7 @@ public OrganizationEventView findValueByNumber(int number) { public static OrganizationEventView 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; @@ -151,4 +183,3 @@ private OrganizationEventView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.servicehealth.v1.OrganizationEventView) } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java similarity index 65% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java index 36f8ef91bed9..2d640cf1c4af 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpact.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,6 +20,8 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * Represents impact to assets at organizational level. It is a read-only view
  * and does not allow any modifications.
@@ -12,46 +29,50 @@
  *
  * Protobuf type {@code google.cloud.servicehealth.v1.OrganizationImpact}
  */
-public final class OrganizationImpact extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OrganizationImpact extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.OrganizationImpact)
     OrganizationImpactOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OrganizationImpact.newBuilder() to construct.
   private OrganizationImpact(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private OrganizationImpact() {
     name_ = "";
-    events_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    events_ = 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 OrganizationImpact();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.servicehealth.v1.EventResourcesProto
+        .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable
+    return com.google.cloud.servicehealth.v1.EventResourcesProto
+        .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.servicehealth.v1.OrganizationImpact.class, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder.class);
+            com.google.cloud.servicehealth.v1.OrganizationImpact.class,
+            com.google.cloud.servicehealth.v1.OrganizationImpact.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Identifier. Unique name of the organization impact in this
    * scope including organization and location using the form
@@ -65,7 +86,10 @@ protected java.lang.Object newInstance(
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The name. */ @java.lang.Override @@ -74,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; } } /** + * + * *
    * Output only. Identifier. Unique name of the organization impact in this
    * scope including organization and location using the form
@@ -95,17 +120,18 @@ public java.lang.String getName() {
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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,38 +140,53 @@ public java.lang.String getName() { } public static final int EVENTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList events_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Output only. A list of event names impacting the asset.
    * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the events. */ - public com.google.protobuf.ProtocolStringList - getEventsList() { + public com.google.protobuf.ProtocolStringList getEventsList() { return events_; } /** + * + * *
    * Output only. A list of event names impacting the asset.
    * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of events. */ public int getEventsCount() { return events_.size(); } /** + * + * *
    * Output only. A list of event names impacting the asset.
    * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The events at the given index. */ @@ -153,27 +194,36 @@ public java.lang.String getEvents(int index) { return events_.get(index); } /** + * + * *
    * Output only. A list of event names impacting the asset.
    * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the events at the given index. */ - public com.google.protobuf.ByteString - getEventsBytes(int index) { + public com.google.protobuf.ByteString getEventsBytes(int index) { return events_.getByteString(index); } public static final int ASSET_FIELD_NUMBER = 3; private com.google.cloud.servicehealth.v1.Asset asset_; /** + * + * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the asset field is set. */ @java.lang.Override @@ -181,11 +231,16 @@ public boolean hasAsset() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The asset. */ @java.lang.Override @@ -193,11 +248,15 @@ public com.google.cloud.servicehealth.v1.Asset getAsset() { return asset_ == null ? com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() : asset_; } /** + * + * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder() { @@ -207,11 +266,15 @@ public com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -219,11 +282,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -231,11 +298,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -243,6 +313,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,8 +325,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_); } @@ -289,12 +359,10 @@ public int getSerializedSize() { size += 1 * getEventsList().size(); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAsset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAsset()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -304,26 +372,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.cloud.servicehealth.v1.OrganizationImpact)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.OrganizationImpact other = (com.google.cloud.servicehealth.v1.OrganizationImpact) obj; + com.google.cloud.servicehealth.v1.OrganizationImpact other = + (com.google.cloud.servicehealth.v1.OrganizationImpact) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEventsList() - .equals(other.getEventsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getEventsList().equals(other.getEventsList())) return false; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset() - .equals(other.getAsset())) return false; + if (!getAsset().equals(other.getAsset())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -356,98 +421,103 @@ public int hashCode() { } public static com.google.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.OrganizationImpact parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.OrganizationImpact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.servicehealth.v1.OrganizationImpact parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.OrganizationImpact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact 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.cloud.servicehealth.v1.OrganizationImpact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 impact to assets at organizational level. It is a read-only view
    * and does not allow any modifications.
@@ -455,21 +525,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.servicehealth.v1.OrganizationImpact}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.OrganizationImpact)
       com.google.cloud.servicehealth.v1.OrganizationImpactOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto
+          .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable
+      return com.google.cloud.servicehealth.v1.EventResourcesProto
+          .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.servicehealth.v1.OrganizationImpact.class, com.google.cloud.servicehealth.v1.OrganizationImpact.Builder.class);
+              com.google.cloud.servicehealth.v1.OrganizationImpact.class,
+              com.google.cloud.servicehealth.v1.OrganizationImpact.Builder.class);
     }
 
     // Construct using com.google.cloud.servicehealth.v1.OrganizationImpact.newBuilder()
@@ -477,25 +549,24 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAssetFieldBuilder();
         getUpdateTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       name_ = "";
-      events_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      events_ = com.google.protobuf.LazyStringArrayList.emptyList();
       asset_ = null;
       if (assetBuilder_ != null) {
         assetBuilder_.dispose();
@@ -510,9 +581,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.servicehealth.v1.EventResourcesProto
+          .internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor;
     }
 
     @java.lang.Override
@@ -531,8 +602,11 @@ public com.google.cloud.servicehealth.v1.OrganizationImpact build() {
 
     @java.lang.Override
     public com.google.cloud.servicehealth.v1.OrganizationImpact buildPartial() {
-      com.google.cloud.servicehealth.v1.OrganizationImpact result = new com.google.cloud.servicehealth.v1.OrganizationImpact(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.servicehealth.v1.OrganizationImpact result =
+          new com.google.cloud.servicehealth.v1.OrganizationImpact(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -548,15 +622,11 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.OrganizationImpact
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.asset_ = assetBuilder_ == null
-            ? asset_
-            : assetBuilder_.build();
+        result.asset_ = assetBuilder_ == null ? asset_ : assetBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -566,38 +636,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.OrganizationImpact
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.cloud.servicehealth.v1.OrganizationImpact) {
-        return mergeFrom((com.google.cloud.servicehealth.v1.OrganizationImpact)other);
+        return mergeFrom((com.google.cloud.servicehealth.v1.OrganizationImpact) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -605,7 +676,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.servicehealth.v1.OrganizationImpact other) {
-      if (other == com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance()) return this;
+      if (other == com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -653,37 +725,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureEventsIsMutable();
-              events_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getAssetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            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:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureEventsIsMutable();
+                events_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getAssetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                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) {
@@ -693,10 +766,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -710,14 +786,16 @@ public Builder mergeFrom(
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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; @@ -726,6 +804,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -739,16 +819,17 @@ public java.lang.String getName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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 { @@ -756,6 +837,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -769,19 +852,25 @@ public java.lang.String getName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -795,7 +884,10 @@ public Builder setName(
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -805,6 +897,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Identifier. Unique name of the organization impact in this
      * scope including organization and location using the form
@@ -818,13 +912,17 @@ public Builder clearName() {
      * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @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; @@ -834,6 +932,7 @@ public Builder setNameBytes( private com.google.protobuf.LazyStringArrayList events_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureEventsIsMutable() { if (!events_.isModifiable()) { events_ = new com.google.protobuf.LazyStringArrayList(events_); @@ -841,35 +940,49 @@ private void ensureEventsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Output only. A list of event names impacting the asset.
      * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the events. */ - public com.google.protobuf.ProtocolStringList - getEventsList() { + public com.google.protobuf.ProtocolStringList getEventsList() { events_.makeImmutable(); return events_; } /** + * + * *
      * Output only. A list of event names impacting the asset.
      * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of events. */ public int getEventsCount() { return events_.size(); } /** + * + * *
      * Output only. A list of event names impacting the asset.
      * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The events at the given index. */ @@ -877,31 +990,41 @@ public java.lang.String getEvents(int index) { return events_.get(index); } /** + * + * *
      * Output only. A list of event names impacting the asset.
      * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the events at the given index. */ - public com.google.protobuf.ByteString - getEventsBytes(int index) { + public com.google.protobuf.ByteString getEventsBytes(int index) { return events_.getByteString(index); } /** + * + * *
      * Output only. A list of event names impacting the asset.
      * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The events to set. * @return This builder for chaining. */ - public Builder setEvents( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEvents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureEventsIsMutable(); events_.set(index, value); bitField0_ |= 0x00000002; @@ -909,17 +1032,23 @@ public Builder setEvents( return this; } /** + * + * *
      * Output only. A list of event names impacting the asset.
      * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The events to add. * @return This builder for chaining. */ - public Builder addEvents( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addEvents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureEventsIsMutable(); events_.add(value); bitField0_ |= 0x00000002; @@ -927,50 +1056,64 @@ public Builder addEvents( return this; } /** + * + * *
      * Output only. A list of event names impacting the asset.
      * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param values The events to add. * @return This builder for chaining. */ - public Builder addAllEvents( - java.lang.Iterable values) { + public Builder addAllEvents(java.lang.Iterable values) { ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. A list of event names impacting the asset.
      * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearEvents() { - events_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + events_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Output only. A list of event names impacting the asset.
      * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the events to add. * @return This builder for chaining. */ - public Builder addEventsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addEventsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureEventsIsMutable(); events_.add(value); @@ -981,39 +1124,58 @@ public Builder addEventsBytes( private com.google.cloud.servicehealth.v1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Asset, com.google.cloud.servicehealth.v1.Asset.Builder, com.google.cloud.servicehealth.v1.AssetOrBuilder> assetBuilder_; + com.google.cloud.servicehealth.v1.Asset, + com.google.cloud.servicehealth.v1.Asset.Builder, + com.google.cloud.servicehealth.v1.AssetOrBuilder> + assetBuilder_; /** + * + * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the asset field is set. */ public boolean hasAsset() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The asset. */ public com.google.cloud.servicehealth.v1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null ? com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() + : asset_; } else { return assetBuilder_.getMessage(); } } /** + * + * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAsset(com.google.cloud.servicehealth.v1.Asset value) { if (assetBuilder_ == null) { @@ -1029,14 +1191,17 @@ public Builder setAsset(com.google.cloud.servicehealth.v1.Asset value) { return this; } /** + * + * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setAsset( - com.google.cloud.servicehealth.v1.Asset.Builder builderForValue) { + public Builder setAsset(com.google.cloud.servicehealth.v1.Asset.Builder builderForValue) { if (assetBuilder_ == null) { asset_ = builderForValue.build(); } else { @@ -1047,17 +1212,21 @@ public Builder setAsset( return this; } /** + * + * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeAsset(com.google.cloud.servicehealth.v1.Asset value) { if (assetBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - asset_ != null && - asset_ != com.google.cloud.servicehealth.v1.Asset.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && asset_ != null + && asset_ != com.google.cloud.servicehealth.v1.Asset.getDefaultInstance()) { getAssetBuilder().mergeFrom(value); } else { asset_ = value; @@ -1072,11 +1241,15 @@ public Builder mergeAsset(com.google.cloud.servicehealth.v1.Asset value) { return this; } /** + * + * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAsset() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1089,11 +1262,15 @@ public Builder clearAsset() { return this; } /** + * + * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.Asset.Builder getAssetBuilder() { bitField0_ |= 0x00000004; @@ -1101,36 +1278,48 @@ public com.google.cloud.servicehealth.v1.Asset.Builder getAssetBuilder() { return getAssetFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null ? - com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.servicehealth.v1.Asset.getDefaultInstance() + : asset_; } } /** + * + * *
      * Output only. Google Cloud asset possibly impacted by the specified events.
      * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Asset, com.google.cloud.servicehealth.v1.Asset.Builder, com.google.cloud.servicehealth.v1.AssetOrBuilder> + com.google.cloud.servicehealth.v1.Asset, + com.google.cloud.servicehealth.v1.Asset.Builder, + com.google.cloud.servicehealth.v1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.servicehealth.v1.Asset, com.google.cloud.servicehealth.v1.Asset.Builder, com.google.cloud.servicehealth.v1.AssetOrBuilder>( - getAsset(), - getParentForChildren(), - isClean()); + assetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.servicehealth.v1.Asset, + com.google.cloud.servicehealth.v1.Asset.Builder, + com.google.cloud.servicehealth.v1.AssetOrBuilder>( + getAsset(), getParentForChildren(), isClean()); asset_ = null; } return assetBuilder_; @@ -1138,39 +1327,58 @@ public com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time when the affected project was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. The time when the affected project was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the affected project was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1186,14 +1394,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the affected project was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1204,17 +1415,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the affected project was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1229,11 +1444,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the affected project was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1246,11 +1465,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the affected project was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1258,43 +1481,55 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the affected project was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time when the affected project was last modified.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @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); } @@ -1304,12 +1539,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.OrganizationImpact) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.OrganizationImpact) private static final com.google.cloud.servicehealth.v1.OrganizationImpact DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.OrganizationImpact(); } @@ -1318,27 +1553,27 @@ public static com.google.cloud.servicehealth.v1.OrganizationImpact getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationImpact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 OrganizationImpact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1353,6 +1588,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.OrganizationImpact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java similarity index 63% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java index a441664cb796..87988751763f 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface OrganizationImpactOrBuilder extends +public interface OrganizationImpactOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.OrganizationImpact) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Identifier. Unique name of the organization impact in this
    * scope including organization and location using the form
@@ -22,11 +40,16 @@ public interface OrganizationImpactOrBuilder extends
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Identifier. Unique name of the organization impact in this
    * scope including organization and location using the form
@@ -40,104 +63,149 @@ public interface OrganizationImpactOrBuilder extends
    * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. A list of event names impacting the asset.
    * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the events. */ - java.util.List - getEventsList(); + java.util.List getEventsList(); /** + * + * *
    * Output only. A list of event names impacting the asset.
    * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of events. */ int getEventsCount(); /** + * + * *
    * Output only. A list of event names impacting the asset.
    * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The events at the given index. */ java.lang.String getEvents(int index); /** + * + * *
    * Output only. A list of event names impacting the asset.
    * 
* - * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the events at the given index. */ - com.google.protobuf.ByteString - getEventsBytes(int index); + com.google.protobuf.ByteString getEventsBytes(int index); /** + * + * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the asset field is set. */ boolean hasAsset(); /** + * + * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The asset. */ com.google.cloud.servicehealth.v1.Asset getAsset(); /** + * + * *
    * Output only. Google Cloud asset possibly impacted by the specified events.
    * 
* - * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.servicehealth.v1.AssetOrBuilder getAssetOrBuilder(); /** + * + * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the affected project was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java similarity index 66% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java index 8aae20120441..8048e4108ec6 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto @@ -5,54 +20,62 @@ package com.google.cloud.servicehealth.v1; /** + * + * *
  * Represents the Google Cloud product impacted by the event.
  * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Product} */ -public final class Product extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Product extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.servicehealth.v1.Product) ProductOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Product.newBuilder() to construct. private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Product() { productName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Product(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Product.class, com.google.cloud.servicehealth.v1.Product.Builder.class); + com.google.cloud.servicehealth.v1.Product.class, + com.google.cloud.servicehealth.v1.Product.Builder.class); } public static final int PRODUCT_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object productName_ = ""; /** + * + * *
    * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
    * 
* * string product_name = 1; + * * @return The productName. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getProductName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productName_ = s; return s; } } /** + * + * *
    * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
    * 
* * string product_name = 1; + * * @return The bytes for productName. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductNameBytes() { + public com.google.protobuf.ByteString getProductNameBytes() { java.lang.Object ref = productName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productName_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getProductName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,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(productName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productName_); } @@ -128,15 +151,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.cloud.servicehealth.v1.Product)) { return super.equals(obj); } - com.google.cloud.servicehealth.v1.Product other = (com.google.cloud.servicehealth.v1.Product) obj; + com.google.cloud.servicehealth.v1.Product other = + (com.google.cloud.servicehealth.v1.Product) obj; - if (!getProductName() - .equals(other.getProductName())) return false; + if (!getProductName().equals(other.getProductName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,132 +178,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.servicehealth.v1.Product parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.servicehealth.v1.Product parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Product parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.servicehealth.v1.Product parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.servicehealth.v1.Product parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 Google Cloud product impacted by the event.
    * 
* * Protobuf type {@code google.cloud.servicehealth.v1.Product} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.servicehealth.v1.Product) com.google.cloud.servicehealth.v1.ProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.servicehealth.v1.Product.class, com.google.cloud.servicehealth.v1.Product.Builder.class); + com.google.cloud.servicehealth.v1.Product.class, + com.google.cloud.servicehealth.v1.Product.Builder.class); } // Construct using com.google.cloud.servicehealth.v1.Product.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(); @@ -290,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.servicehealth.v1.EventResourcesProto.internal_static_google_cloud_servicehealth_v1_Product_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.servicehealth.v1.EventResourcesProto + .internal_static_google_cloud_servicehealth_v1_Product_descriptor; } @java.lang.Override @@ -311,8 +338,11 @@ public com.google.cloud.servicehealth.v1.Product build() { @java.lang.Override public com.google.cloud.servicehealth.v1.Product buildPartial() { - com.google.cloud.servicehealth.v1.Product result = new com.google.cloud.servicehealth.v1.Product(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.servicehealth.v1.Product result = + new com.google.cloud.servicehealth.v1.Product(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,38 +358,39 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Product 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.cloud.servicehealth.v1.Product) { - return mergeFrom((com.google.cloud.servicehealth.v1.Product)other); + return mergeFrom((com.google.cloud.servicehealth.v1.Product) other); } else { super.mergeFrom(other); return this; @@ -399,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - productName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + productName_ = 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) { @@ -419,22 +452,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object productName_ = ""; /** + * + * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; + * * @return The productName. */ public java.lang.String getProductName() { java.lang.Object ref = productName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productName_ = s; return s; @@ -443,20 +479,21 @@ public java.lang.String getProductName() { } } /** + * + * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; + * * @return The bytes for productName. */ - public com.google.protobuf.ByteString - getProductNameBytes() { + public com.google.protobuf.ByteString getProductNameBytes() { java.lang.Object ref = productName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productName_ = b; return b; } else { @@ -464,28 +501,35 @@ public java.lang.String getProductName() { } } /** + * + * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; + * * @param value The productName to set. * @return This builder for chaining. */ - public Builder setProductName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProductName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } productName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; + * * @return This builder for chaining. */ public Builder clearProductName() { @@ -495,26 +539,30 @@ public Builder clearProductName() { return this; } /** + * + * *
      * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
      * 
* * string product_name = 1; + * * @param value The bytes for productName to set. * @return This builder for chaining. */ - public Builder setProductNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProductNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); productName_ = 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); } @@ -524,12 +572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.servicehealth.v1.Product) } // @@protoc_insertion_point(class_scope:google.cloud.servicehealth.v1.Product) private static final com.google.cloud.servicehealth.v1.Product DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.servicehealth.v1.Product(); } @@ -538,27 +586,27 @@ public static com.google.cloud.servicehealth.v1.Product getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Product parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Product parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -573,6 +621,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.servicehealth.v1.Product getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java similarity index 51% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java index 26cb62d46586..cc37e3317f15 100644 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/servicehealth/v1/event_resources.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.servicehealth.v1; -public interface ProductOrBuilder extends +public interface ProductOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.servicehealth.v1.Product) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
    * 
* * string product_name = 1; + * * @return The productName. */ java.lang.String getProductName(); /** + * + * *
    * Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
    * 
* * string product_name = 1; + * * @return The bytes for productName. */ - com.google.protobuf.ByteString - getProductNameBytes(); + com.google.protobuf.ByteString getProductNameBytes(); } diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto rename to java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_service.proto diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/AsyncGetEvent.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEvent.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventEventname.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getevent/SyncGetEventString.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/AsyncGetOrganizationEvent.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEvent.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventOrganizationeventname.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationevent/SyncGetOrganizationEventString.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/AsyncGetOrganizationImpact.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpact.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactOrganizationimpactname.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/getorganizationimpact/SyncGetOrganizationImpactString.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEvents.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/AsyncListEventsPaged.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEvents.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsLocationname.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listevents/SyncListEventsString.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEvents.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/AsyncListOrganizationEventsPaged.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEvents.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsOrganizationlocationname.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationevents/SyncListOrganizationEventsString.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpacts.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/AsyncListOrganizationImpactsPaged.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpacts.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsOrganizationlocationname.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/listorganizationimpacts/SyncListOrganizationImpactsString.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealthsettings/getevent/SyncGetEvent.java diff --git a/owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java similarity index 100% rename from owl-bot-staging/java-servicehealth/v1/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java rename to java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/stub/servicehealthstubsettings/getevent/SyncGetEvent.java diff --git a/owl-bot-staging/java-servicehealth/v1/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java b/owl-bot-staging/java-servicehealth/v1/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java deleted file mode 100644 index 8a3e43277682..000000000000 --- a/owl-bot-staging/java-servicehealth/v1/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java +++ /dev/null @@ -1,765 +0,0 @@ -package com.google.cloud.servicehealth.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Request service health events relevant to your Google Cloud project.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicehealth/v1/event_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ServiceHealthGrpc { - - private ServiceHealthGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.servicehealth.v1.ServiceHealth"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEvents", - requestType = com.google.cloud.servicehealth.v1.ListEventsRequest.class, - responseType = com.google.cloud.servicehealth.v1.ListEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListEventsMethod() { - io.grpc.MethodDescriptor getListEventsMethod; - if ((getListEventsMethod = ServiceHealthGrpc.getListEventsMethod) == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getListEventsMethod = ServiceHealthGrpc.getListEventsMethod) == null) { - ServiceHealthGrpc.getListEventsMethod = getListEventsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListEventsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListEventsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("ListEvents")) - .build(); - } - } - } - return getListEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEvent", - requestType = com.google.cloud.servicehealth.v1.GetEventRequest.class, - responseType = com.google.cloud.servicehealth.v1.Event.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEventMethod() { - io.grpc.MethodDescriptor getGetEventMethod; - if ((getGetEventMethod = ServiceHealthGrpc.getGetEventMethod) == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getGetEventMethod = ServiceHealthGrpc.getGetEventMethod) == null) { - ServiceHealthGrpc.getGetEventMethod = getGetEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.GetEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.Event.getDefaultInstance())) - .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("GetEvent")) - .build(); - } - } - } - return getGetEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getListOrganizationEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListOrganizationEvents", - requestType = com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.class, - responseType = com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListOrganizationEventsMethod() { - io.grpc.MethodDescriptor getListOrganizationEventsMethod; - if ((getListOrganizationEventsMethod = ServiceHealthGrpc.getListOrganizationEventsMethod) == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getListOrganizationEventsMethod = ServiceHealthGrpc.getListOrganizationEventsMethod) == null) { - ServiceHealthGrpc.getListOrganizationEventsMethod = getListOrganizationEventsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrganizationEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("ListOrganizationEvents")) - .build(); - } - } - } - return getListOrganizationEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetOrganizationEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationEvent", - requestType = com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.class, - responseType = com.google.cloud.servicehealth.v1.OrganizationEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetOrganizationEventMethod() { - io.grpc.MethodDescriptor getGetOrganizationEventMethod; - if ((getGetOrganizationEventMethod = ServiceHealthGrpc.getGetOrganizationEventMethod) == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getGetOrganizationEventMethod = ServiceHealthGrpc.getGetOrganizationEventMethod) == null) { - ServiceHealthGrpc.getGetOrganizationEventMethod = getGetOrganizationEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.OrganizationEvent.getDefaultInstance())) - .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("GetOrganizationEvent")) - .build(); - } - } - } - return getGetOrganizationEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getListOrganizationImpactsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListOrganizationImpacts", - requestType = com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.class, - responseType = com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListOrganizationImpactsMethod() { - io.grpc.MethodDescriptor getListOrganizationImpactsMethod; - if ((getListOrganizationImpactsMethod = ServiceHealthGrpc.getListOrganizationImpactsMethod) == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getListOrganizationImpactsMethod = ServiceHealthGrpc.getListOrganizationImpactsMethod) == null) { - ServiceHealthGrpc.getListOrganizationImpactsMethod = getListOrganizationImpactsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrganizationImpacts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("ListOrganizationImpacts")) - .build(); - } - } - } - return getListOrganizationImpactsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetOrganizationImpactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationImpact", - requestType = com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.class, - responseType = com.google.cloud.servicehealth.v1.OrganizationImpact.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetOrganizationImpactMethod() { - io.grpc.MethodDescriptor getGetOrganizationImpactMethod; - if ((getGetOrganizationImpactMethod = ServiceHealthGrpc.getGetOrganizationImpactMethod) == null) { - synchronized (ServiceHealthGrpc.class) { - if ((getGetOrganizationImpactMethod = ServiceHealthGrpc.getGetOrganizationImpactMethod) == null) { - ServiceHealthGrpc.getGetOrganizationImpactMethod = getGetOrganizationImpactMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationImpact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.servicehealth.v1.OrganizationImpact.getDefaultInstance())) - .setSchemaDescriptor(new ServiceHealthMethodDescriptorSupplier("GetOrganizationImpact")) - .build(); - } - } - } - return getGetOrganizationImpactMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ServiceHealthStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceHealthStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthStub(channel, callOptions); - } - }; - return ServiceHealthStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ServiceHealthBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceHealthBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthBlockingStub(channel, callOptions); - } - }; - return ServiceHealthBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ServiceHealthFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceHealthFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthFutureStub(channel, callOptions); - } - }; - return ServiceHealthFutureStub.newStub(factory, channel); - } - - /** - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Lists events under a given project and location.
-     * 
- */ - default void listEvents(com.google.cloud.servicehealth.v1.ListEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventsMethod(), responseObserver); - } - - /** - *
-     * Retrieves a resource containing information about an event.
-     * 
- */ - default void getEvent(com.google.cloud.servicehealth.v1.GetEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEventMethod(), responseObserver); - } - - /** - *
-     * Lists organization events under a given organization and location.
-     * 
- */ - default void listOrganizationEvents(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOrganizationEventsMethod(), responseObserver); - } - - /** - *
-     * Retrieves a resource containing information about an event affecting an
-     * organization .
-     * 
- */ - default void getOrganizationEvent(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationEventMethod(), responseObserver); - } - - /** - *
-     * Lists assets impacted by organization events under a given organization and
-     * location.
-     * 
- */ - default void listOrganizationImpacts(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOrganizationImpactsMethod(), responseObserver); - } - - /** - *
-     * Retrieves a resource containing information about impact to an asset under
-     * an organization affected by a service health event.
-     * 
- */ - default void getOrganizationImpact(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationImpactMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ServiceHealth. - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public static abstract class ServiceHealthImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return ServiceHealthGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ServiceHealth. - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public static final class ServiceHealthStub - extends io.grpc.stub.AbstractAsyncStub { - private ServiceHealthStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceHealthStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthStub(channel, callOptions); - } - - /** - *
-     * Lists events under a given project and location.
-     * 
- */ - public void listEvents(com.google.cloud.servicehealth.v1.ListEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEventsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves a resource containing information about an event.
-     * 
- */ - public void getEvent(com.google.cloud.servicehealth.v1.GetEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists organization events under a given organization and location.
-     * 
- */ - public void listOrganizationEvents(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListOrganizationEventsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves a resource containing information about an event affecting an
-     * organization .
-     * 
- */ - public void getOrganizationEvent(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists assets impacted by organization events under a given organization and
-     * location.
-     * 
- */ - public void listOrganizationImpacts(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListOrganizationImpactsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves a resource containing information about impact to an asset under
-     * an organization affected by a service health event.
-     * 
- */ - public void getOrganizationImpact(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationImpactMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ServiceHealth. - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public static final class ServiceHealthBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ServiceHealthBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceHealthBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists events under a given project and location.
-     * 
- */ - public com.google.cloud.servicehealth.v1.ListEventsResponse listEvents(com.google.cloud.servicehealth.v1.ListEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEventsMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves a resource containing information about an event.
-     * 
- */ - public com.google.cloud.servicehealth.v1.Event getEvent(com.google.cloud.servicehealth.v1.GetEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists organization events under a given organization and location.
-     * 
- */ - public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse listOrganizationEvents(com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListOrganizationEventsMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves a resource containing information about an event affecting an
-     * organization .
-     * 
- */ - public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvent(com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists assets impacted by organization events under a given organization and
-     * location.
-     * 
- */ - public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse listOrganizationImpacts(com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListOrganizationImpactsMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves a resource containing information about impact to an asset under
-     * an organization affected by a service health event.
-     * 
- */ - public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpact(com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationImpactMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service ServiceHealth. - *
-   * Request service health events relevant to your Google Cloud project.
-   * 
- */ - public static final class ServiceHealthFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ServiceHealthFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceHealthFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceHealthFutureStub(channel, callOptions); - } - - /** - *
-     * Lists events under a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listEvents( - com.google.cloud.servicehealth.v1.ListEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEventsMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves a resource containing information about an event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEvent( - com.google.cloud.servicehealth.v1.GetEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists organization events under a given organization and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listOrganizationEvents( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListOrganizationEventsMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves a resource containing information about an event affecting an
-     * organization .
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getOrganizationEvent( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists assets impacted by organization events under a given organization and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listOrganizationImpacts( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListOrganizationImpactsMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves a resource containing information about impact to an asset under
-     * an organization affected by a service health event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getOrganizationImpact( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationImpactMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_EVENTS = 0; - private static final int METHODID_GET_EVENT = 1; - private static final int METHODID_LIST_ORGANIZATION_EVENTS = 2; - private static final int METHODID_GET_ORGANIZATION_EVENT = 3; - private static final int METHODID_LIST_ORGANIZATION_IMPACTS = 4; - private static final int METHODID_GET_ORGANIZATION_IMPACT = 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_EVENTS: - serviceImpl.listEvents((com.google.cloud.servicehealth.v1.ListEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EVENT: - serviceImpl.getEvent((com.google.cloud.servicehealth.v1.GetEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ORGANIZATION_EVENTS: - serviceImpl.listOrganizationEvents((com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ORGANIZATION_EVENT: - serviceImpl.getOrganizationEvent((com.google.cloud.servicehealth.v1.GetOrganizationEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ORGANIZATION_IMPACTS: - serviceImpl.listOrganizationImpacts((com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ORGANIZATION_IMPACT: - serviceImpl.getOrganizationImpact((com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest) 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( - getListEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.ListEventsRequest, - com.google.cloud.servicehealth.v1.ListEventsResponse>( - service, METHODID_LIST_EVENTS))) - .addMethod( - getGetEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.GetEventRequest, - com.google.cloud.servicehealth.v1.Event>( - service, METHODID_GET_EVENT))) - .addMethod( - getListOrganizationEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse>( - service, METHODID_LIST_ORGANIZATION_EVENTS))) - .addMethod( - getGetOrganizationEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest, - com.google.cloud.servicehealth.v1.OrganizationEvent>( - service, METHODID_GET_ORGANIZATION_EVENT))) - .addMethod( - getListOrganizationImpactsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, - com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse>( - service, METHODID_LIST_ORGANIZATION_IMPACTS))) - .addMethod( - getGetOrganizationImpactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, - com.google.cloud.servicehealth.v1.OrganizationImpact>( - service, METHODID_GET_ORGANIZATION_IMPACT))) - .build(); - } - - private static abstract class ServiceHealthBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ServiceHealthBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.servicehealth.v1.EventServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ServiceHealth"); - } - } - - private static final class ServiceHealthFileDescriptorSupplier - extends ServiceHealthBaseDescriptorSupplier { - ServiceHealthFileDescriptorSupplier() {} - } - - private static final class ServiceHealthMethodDescriptorSupplier - extends ServiceHealthBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - ServiceHealthMethodDescriptorSupplier(java.lang.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 (ServiceHealthGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ServiceHealthFileDescriptorSupplier()) - .addMethod(getListEventsMethod()) - .addMethod(getGetEventMethod()) - .addMethod(getListOrganizationEventsMethod()) - .addMethod(getGetOrganizationEventMethod()) - .addMethod(getListOrganizationImpactsMethod()) - .addMethod(getGetOrganizationImpactMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java deleted file mode 100644 index 6d5507f8a9c4..000000000000 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java +++ /dev/null @@ -1,381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/servicehealth/v1/event_resources.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.servicehealth.v1; - -public final class EventResourcesProto { - private EventResourcesProto() {} - 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_cloud_servicehealth_v1_Event_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_Location_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_Product_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_Asset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/servicehealth/v1/event_re" + - "sources.proto\022\035google.cloud.servicehealt" + - "h.v1\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\032\037google/protobu" + - "f/timestamp.proto\"\223\013\n\005Event\022\024\n\004name\030\001 \001(" + - "\tB\006\340A\003\340A\010\022\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013descrip" + - "tion\030\003 \001(\tB\003\340A\003\022I\n\010category\030\004 \001(\01622.goog" + - "le.cloud.servicehealth.v1.Event.EventCat" + - "egoryB\003\340A\003\022U\n\021detailed_category\030\025 \001(\01625." + - "google.cloud.servicehealth.v1.Event.Deta" + - "iledCategoryB\003\340A\003\022>\n\005state\030\005 \001(\0162*.googl" + - "e.cloud.servicehealth.v1.Event.StateB\003\340A" + - "\003\022O\n\016detailed_state\030\023 \001(\01622.google.cloud" + - ".servicehealth.v1.Event.DetailedStateB\003\340" + - "A\003\022A\n\revent_impacts\030\024 \003(\0132*.google.cloud" + - ".servicehealth.v1.EventImpact\022F\n\trelevan" + - "ce\030\010 \001(\0162..google.cloud.servicehealth.v1" + - ".Event.RelevanceB\003\340A\003\022@\n\007updates\030\t \003(\0132*" + - ".google.cloud.servicehealth.v1.EventUpda" + - "teB\003\340A\003\022\031\n\014parent_event\030\n \001(\tB\003\340A\003\0224\n\013up" + - "date_time\030\014 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\0223\n\nstart_time\030\r \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\016 \001(\0132" + - "\032.google.protobuf.TimestampB\003\340A\003\0229\n\020next" + - "_update_time\030\017 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\"=\n\rEventCategory\022\036\n\032EVENT_CA" + - "TEGORY_UNSPECIFIED\020\000\022\014\n\010INCIDENT\020\002\"d\n\020De" + - "tailedCategory\022!\n\035DETAILED_CATEGORY_UNSP" + - "ECIFIED\020\000\022\026\n\022CONFIRMED_INCIDENT\020\001\022\025\n\021EME" + - "RGING_INCIDENT\020\002\"6\n\005State\022\025\n\021STATE_UNSPE" + - "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006CLOSED\020\002\"\213\001\n\rDet" + - "ailedState\022\036\n\032DETAILED_STATE_UNSPECIFIED" + - "\020\000\022\014\n\010EMERGING\020\001\022\r\n\tCONFIRMED\020\002\022\014\n\010RESOL" + - "VED\020\003\022\n\n\006MERGED\020\004\022\017\n\013AUTO_CLOSED\020\t\022\022\n\016FA" + - "LSE_POSITIVE\020\n\"w\n\tRelevance\022\031\n\025RELEVANCE" + - "_UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\002\022\020\n\014NOT_IMPAC" + - "TED\020\006\022\025\n\021PARTIALLY_RELATED\020\007\022\013\n\007RELATED\020" + - "\010\022\014\n\010IMPACTED\020\t:n\352Ak\n\"servicehealth.goog" + - "leapis.com/Event\0226projects/{project}/loc" + - "ations/{location}/events/{event}*\006events" + - "2\005event\"\317\n\n\021OrganizationEvent\022\024\n\004name\030\001 " + - "\001(\tB\006\340A\003\340A\010\022\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013descr" + - "iption\030\003 \001(\tB\003\340A\003\022U\n\010category\030\004 \001(\0162>.go" + - "ogle.cloud.servicehealth.v1.Organization" + - "Event.EventCategoryB\003\340A\003\022a\n\021detailed_cat" + - "egory\030\021 \001(\0162A.google.cloud.servicehealth" + - ".v1.OrganizationEvent.DetailedCategoryB\003" + - "\340A\003\022J\n\005state\030\005 \001(\01626.google.cloud.servic" + - "ehealth.v1.OrganizationEvent.StateB\003\340A\003\022" + - "[\n\016detailed_state\030\020 \001(\0162>.google.cloud.s" + - "ervicehealth.v1.OrganizationEvent.Detail" + - "edStateB\003\340A\003\022F\n\revent_impacts\030\017 \003(\0132*.go" + - "ogle.cloud.servicehealth.v1.EventImpactB" + - "\003\340A\003\022@\n\007updates\030\010 \003(\0132*.google.cloud.ser" + - "vicehealth.v1.EventUpdateB\003\340A\003\022\031\n\014parent" + - "_event\030\t \001(\tB\003\340A\003\0224\n\013update_time\030\013 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\003\0223\n\nstart" + - "_time\030\014 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0221\n\010end_time\030\r \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\0229\n\020next_update_time\030\016 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\"=\n\rEv" + - "entCategory\022\036\n\032EVENT_CATEGORY_UNSPECIFIE" + - "D\020\000\022\014\n\010INCIDENT\020\002\"d\n\020DetailedCategory\022!\n" + - "\035DETAILED_CATEGORY_UNSPECIFIED\020\000\022\026\n\022CONF" + - "IRMED_INCIDENT\020\001\022\025\n\021EMERGING_INCIDENT\020\002\"" + - "6\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + - "E\020\001\022\n\n\006CLOSED\020\002\"\213\001\n\rDetailedState\022\036\n\032DET" + - "AILED_STATE_UNSPECIFIED\020\000\022\014\n\010EMERGING\020\001\022" + - "\r\n\tCONFIRMED\020\002\022\014\n\010RESOLVED\020\003\022\n\n\006MERGED\020\004" + - "\022\017\n\013AUTO_CLOSED\020\t\022\022\n\016FALSE_POSITIVE\020\n:\251\001" + - "\352A\245\001\n.servicehealth.googleapis.com/Organ" + - "izationEvent\022Lorganizations/{organizatio" + - "n}/locations/{location}/organizationEven" + - "ts/{event}*\022organizationEvents2\021organiza" + - "tionEvent\"\240\001\n\013EventUpdate\0224\n\013update_time" + - "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013description\030\003 \001(\t" + - "B\003\340A\003\022\024\n\007symptom\030\004 \001(\tB\003\340A\003\022\027\n\nworkaroun" + - "d\030\005 \001(\tB\003\340A\003\"!\n\010Location\022\025\n\rlocation_nam" + - "e\030\001 \001(\t\"\037\n\007Product\022\024\n\014product_name\030\001 \001(\t" + - "\"\201\001\n\013EventImpact\0227\n\007product\030\001 \001(\0132&.goog" + - "le.cloud.servicehealth.v1.Product\0229\n\010loc" + - "ation\030\002 \001(\0132\'.google.cloud.servicehealth" + - ".v1.Location\"\224\003\n\022OrganizationImpact\022\024\n\004n" + - "ame\030\001 \001(\tB\006\340A\003\340A\010\022:\n\006events\030\002 \003(\tB*\340A\003\372A" + - "$\n\"servicehealth.googleapis.com/Event\0228\n" + - "\005asset\030\003 \001(\0132$.google.cloud.servicehealt" + - "h.v1.AssetB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003:\273\001\352A\267\001\n/se" + - "rvicehealth.googleapis.com/OrganizationI" + - "mpact\022[organizations/{organization}/loca" + - "tions/{location}/organizationImpacts/{or" + - "ganization_impact}*\023organizationImpacts2" + - "\022organizationImpact\"9\n\005Asset\022\027\n\nasset_na" + - "me\030\001 \001(\tB\003\340A\003\022\027\n\nasset_type\030\002 \001(\tB\003\340A\003\"\322" + - "\001\n\021ListEventsRequest\022:\n\006parent\030\001 \001(\tB*\340A" + - "\002\372A$\022\"servicehealth.googleapis.com/Event" + - "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" + - " \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022;\n\004view\030\006" + - " \001(\0162(.google.cloud.servicehealth.v1.Eve" + - "ntViewB\003\340A\001\"\207\001\n\022ListEventsResponse\0229\n\006ev" + - "ents\030\001 \003(\0132$.google.cloud.servicehealth." + - "v1.EventB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003" + - "\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"K\n\017GetEven" + - "tRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"serviceh" + - "ealth.googleapis.com/Event\"\366\001\n\035ListOrgan" + - "izationEventsRequest\022F\n\006parent\030\001 \001(\tB6\340A" + - "\002\372A0\022.servicehealth.googleapis.com/Organ" + - "izationEvent\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + - "page_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340" + - "A\001\022G\n\004view\030\006 \001(\01624.google.cloud.serviceh" + - "ealth.v1.OrganizationEventViewB\003\340A\001\"\254\001\n\036" + - "ListOrganizationEventsResponse\022R\n\023organi" + - "zation_events\030\001 \003(\01320.google.cloud.servi" + - "cehealth.v1.OrganizationEventB\003\340A\003\022\034\n\017ne" + - "xt_page_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030" + - "\003 \003(\tB\003\340A\003\"c\n\033GetOrganizationEventReques" + - "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.servicehealth.g" + - "oogleapis.com/OrganizationEvent\"\257\001\n\036List" + - "OrganizationImpactsRequest\022G\n\006parent\030\001 \001" + - "(\tB7\340A\002\372A1\022/servicehealth.googleapis.com" + - "/OrganizationImpact\022\026\n\tpage_size\030\002 \001(\005B\003" + - "\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004" + - " \001(\tB\003\340A\001\"\257\001\n\037ListOrganizationImpactsRes" + - "ponse\022T\n\024organization_impacts\030\001 \003(\01321.go" + - "ogle.cloud.servicehealth.v1.Organization" + - "ImpactB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" + - "\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"e\n\034GetOrgani" + - "zationImpactRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A" + - "1\n/servicehealth.googleapis.com/Organiza" + - "tionImpact*R\n\tEventView\022\032\n\026EVENT_VIEW_UN" + - "SPECIFIED\020\000\022\024\n\020EVENT_VIEW_BASIC\020\001\022\023\n\017EVE" + - "NT_VIEW_FULL\020\002*\205\001\n\025OrganizationEventView" + - "\022\'\n#ORGANIZATION_EVENT_VIEW_UNSPECIFIED\020" + - "\000\022!\n\035ORGANIZATION_EVENT_VIEW_BASIC\020\001\022 \n\034" + - "ORGANIZATION_EVENT_VIEW_FULL\020\002B\317\002\n!com.g" + - "oogle.cloud.servicehealth.v1B\023EventResou" + - "rcesProtoP\001ZGcloud.google.com/go/service" + - "health/apiv1/servicehealthpb;serviceheal" + - "thpb\252\002\035Google.Cloud.ServiceHealth.V1\312\002\035G" + - "oogle\\Cloud\\ServiceHealth\\V1\352\002 Google::C" + - "loud::ServiceHealth::V1\352Af\n1servicehealt" + - "h.googleapis.com/OrganizationLocation\0221o" + - "rganizations/{organization}/locations/{l" + - "ocation}b\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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_servicehealth_v1_Event_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_servicehealth_v1_Event_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_Event_descriptor, - new java.lang.String[] { "Name", "Title", "Description", "Category", "DetailedCategory", "State", "DetailedState", "EventImpacts", "Relevance", "Updates", "ParentEvent", "UpdateTime", "StartTime", "EndTime", "NextUpdateTime", }); - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_OrganizationEvent_descriptor, - new java.lang.String[] { "Name", "Title", "Description", "Category", "DetailedCategory", "State", "DetailedState", "EventImpacts", "Updates", "ParentEvent", "UpdateTime", "StartTime", "EndTime", "NextUpdateTime", }); - internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_servicehealth_v1_EventUpdate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_EventUpdate_descriptor, - new java.lang.String[] { "UpdateTime", "Title", "Description", "Symptom", "Workaround", }); - internal_static_google_cloud_servicehealth_v1_Location_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_servicehealth_v1_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_Location_descriptor, - new java.lang.String[] { "LocationName", }); - internal_static_google_cloud_servicehealth_v1_Product_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_servicehealth_v1_Product_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_Product_descriptor, - new java.lang.String[] { "ProductName", }); - internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_servicehealth_v1_EventImpact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor, - new java.lang.String[] { "Product", "Location", }); - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_OrganizationImpact_descriptor, - new java.lang.String[] { "Name", "Events", "Asset", "UpdateTime", }); - internal_static_google_cloud_servicehealth_v1_Asset_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_servicehealth_v1_Asset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_Asset_descriptor, - new java.lang.String[] { "AssetName", "AssetType", }); - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListEventsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "View", }); - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListEventsResponse_descriptor, - new java.lang.String[] { "Events", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_servicehealth_v1_GetEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_GetEventRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "View", }); - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListOrganizationEventsResponse_descriptor, - new java.lang.String[] { "OrganizationEvents", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_GetOrganizationEventRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_ListOrganizationImpactsResponse_descriptor, - new java.lang.String[] { "OrganizationImpacts", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_servicehealth_v1_GetOrganizationImpactRequest_descriptor, - new java.lang.String[] { "Name", }); - 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.resourceDefinition); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java b/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java deleted file mode 100644 index b9f19a46bbbc..000000000000 --- a/owl-bot-staging/java-servicehealth/v1/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventServiceProto.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/servicehealth/v1/event_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.servicehealth.v1; - -public final class EventServiceProto { - private EventServiceProto() {} - 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 = { - "\n1google/cloud/servicehealth/v1/event_se" + - "rvice.proto\022\035google.cloud.servicehealth." + - "v1\032\034google/api/annotations.proto\032\027google" + - "/api/client.proto\0323google/cloud/serviceh" + - "ealth/v1/event_resources.proto2\252\n\n\rServi" + - "ceHealth\022\256\001\n\nListEvents\0220.google.cloud.s" + - "ervicehealth.v1.ListEventsRequest\0321.goog" + - "le.cloud.servicehealth.v1.ListEventsResp" + - "onse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=proje" + - "cts/*/locations/*}/events\022\233\001\n\010GetEvent\022." + - ".google.cloud.servicehealth.v1.GetEventR" + - "equest\032$.google.cloud.servicehealth.v1.E" + - "vent\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/" + - "*/locations/*/events/*}\022\343\001\n\026ListOrganiza" + - "tionEvents\022<.google.cloud.servicehealth." + - "v1.ListOrganizationEventsRequest\032=.googl" + - "e.cloud.servicehealth.v1.ListOrganizatio" + - "nEventsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{p" + - "arent=organizations/*/locations/*}/organ" + - "izationEvents\022\320\001\n\024GetOrganizationEvent\022:" + - ".google.cloud.servicehealth.v1.GetOrgani" + - "zationEventRequest\0320.google.cloud.servic" + - "ehealth.v1.OrganizationEvent\"J\332A\004name\202\323\344" + - "\223\002=\022;/v1/{name=organizations/*/locations" + - "/*/organizationEvents/*}\022\347\001\n\027ListOrganiz" + - "ationImpacts\022=.google.cloud.servicehealt" + - "h.v1.ListOrganizationImpactsRequest\032>.go" + - "ogle.cloud.servicehealth.v1.ListOrganiza" + - "tionImpactsResponse\"M\332A\006parent\202\323\344\223\002>\022\022